comparison mercurial/commands.py @ 505:dc1f735dfaac

[PATCH] Fix "no-update" option to clone -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Fix "no-update" option to clone From: Bryan O'Sullivan <bos@serpentine.com> 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-----
author mpm@selenic.com
date Tue, 28 Jun 2005 02:22:45 -0800
parents c6a2e41c8c60
children 1f81ebff98c9
comparison
equal deleted inserted replaced
504:a350c1cd3fc5 505:dc1f735dfaac
310 310
311 f = repo.opener("hgrc", "w") 311 f = repo.opener("hgrc", "w")
312 f.write("[paths]\n") 312 f.write("[paths]\n")
313 f.write("default = %s\n" % source) 313 f.write("default = %s\n" % source)
314 314
315 if not opts['no-update']: 315 if not opts['noupdate']:
316 update(ui, repo) 316 update(ui, repo)
317 317
318 success = True 318 success = True
319 319
320 finally: 320 finally:
737 ('u', 'user', None, 'show user'), 737 ('u', 'user', None, 'show user'),
738 ('n', 'number', None, 'show revision number'), 738 ('n', 'number', None, 'show revision number'),
739 ('c', 'changeset', None, 'show changeset')], 739 ('c', 'changeset', None, 'show changeset')],
740 'hg annotate [-u] [-c] [-n] [-r id] [files]'), 740 'hg annotate [-u] [-c] [-n] [-r id] [files]'),
741 "cat": (cat, [], 'hg cat <file> [rev]'), 741 "cat": (cat, [], 'hg cat <file> [rev]'),
742 "clone": (clone, [('U', 'no-update', None, 'skip update after cloning')], 742 "clone": (clone, [('U', 'noupdate', None, 'skip update after cloning')],
743 'hg clone [options] <source> [dest]'), 743 'hg clone [options] <source> [dest]'),
744 "commit|ci": (commit, 744 "commit|ci": (commit,
745 [('t', 'text', "", 'commit text'), 745 [('t', 'text', "", 'commit text'),
746 ('A', 'addremove', None, 'run add/remove during commit'), 746 ('A', 'addremove', None, 'run add/remove during commit'),
747 ('l', 'logfile', "", 'commit text file'), 747 ('l', 'logfile', "", 'commit text file'),