diff --git a/doc/hg.1.txt b/doc/hg.1.txt --- a/doc/hg.1.txt +++ b/doc/hg.1.txt @@ -93,7 +93,7 @@ clone [-U] [dest]:: source and destination are on the same filesystem. options: - -U, --no-update do not update the new working directory + -U, --noupdate do not update the new working directory commit [-A -t -l -t -u -d ] [files...]:: Commit changes to the given files into the repository. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -312,7 +312,7 @@ def clone(ui, source, dest = None, **opt f.write("[paths]\n") f.write("default = %s\n" % source) - if not opts['no-update']: + if not opts['noupdate']: update(ui, repo) success = True @@ -739,7 +739,7 @@ table = { ('c', 'changeset', None, 'show changeset')], 'hg annotate [-u] [-c] [-n] [-r id] [files]'), "cat": (cat, [], 'hg cat [rev]'), - "clone": (clone, [('U', 'no-update', None, 'skip update after cloning')], + "clone": (clone, [('U', 'noupdate', None, 'skip update after cloning')], 'hg clone [options] [dest]'), "commit|ci": (commit, [('t', 'text', "", 'commit text'),