# HG changeset patch # User mpm@selenic.com # Date 2005-06-28 10:22:45 # Node ID dc1f735dfaaca416615ad565e0e01d061aaf1644 # Parent a350c1cd3fc54e9602fbff38a66f72ba62998752 [PATCH] Fix "no-update" option to clone -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Fix "no-update" option to clone From: Bryan O'Sullivan Turn "no-update" (invalid Python identifier) into "noupdate". manifest hash: 1dfb3212b97531437d5a243813896c090a05d95a -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwST1ywK+sNU5EO8RAvGnAJ9/RvohYRxpMTWkK6YCiF6r3U68FACeNRcr mE/NYJzVbijiLK9TwWm8QgQ= =w/KV -----END PGP SIGNATURE----- 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'),