Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/commands.py @ 210:d2badbd7d1ad
hg undo: fixup working dir state
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hg undo: fixup working dir state
manifest hash: 60fd7a5621f7c4e87c7c36097aaf11b22e7ee0b4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCngETywK+sNU5EO8RAiC/AKChvIgy61YfOLJcTQg5BKkTLLErRgCgnJMr
+xb+XsjeNfK+83MzeuE8UOk=
=EIlj
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 01 Jun 2005 10:40:19 -0800 |
parents | 63af1db35611 |
children | 426d3c3ae363 |
comparison
equal
deleted
inserted
replaced
209:63af1db35611 | 210:d2badbd7d1ad |
---|---|
88 pieces.append([ "%*s" % (m, x) for x in l]) | 88 pieces.append([ "%*s" % (m, x) for x in l]) |
89 | 89 |
90 for p,l in zip(zip(*pieces), lines): | 90 for p,l in zip(zip(*pieces), lines): |
91 u.write(" ".join(p) + ": " + l[1]) | 91 u.write(" ".join(p) + ": " + l[1]) |
92 | 92 |
93 def undo(ui, repo, args): | |
94 repo.undo() | |
95 | |
93 table = { | 96 table = { |
94 "init": (init, [], 'hg init'), | 97 "init": (init, [], 'hg init'), |
95 "help": (help, [], 'hg init'), | 98 "help": (help, [], 'hg init'), |
96 "checkout|co": (checkout, [], 'hg init'), | 99 "checkout|co": (checkout, [], 'hg init'), |
97 "ann|annotate": (annotate, | 100 "ann|annotate": (annotate, |
98 [('r', 'revision', '', 'revision'), | 101 [('r', 'revision', '', 'revision'), |
99 ('u', 'user', None, 'show user'), | 102 ('u', 'user', None, 'show user'), |
100 ('n', 'number', None, 'show revision number'), | 103 ('n', 'number', None, 'show revision number'), |
101 ('c', 'changeset', None, 'show changeset')], | 104 ('c', 'changeset', None, 'show changeset')], |
102 'hg annotate [-u] [-c] [-n] [-r id] [files]'), | 105 'hg annotate [-u] [-c] [-n] [-r id] [files]'), |
106 "undo": (undo, [], 'hg undo'), | |
103 } | 107 } |
104 | 108 |
105 norepo = "init branch help" | 109 norepo = "init branch help" |
106 | 110 |
107 def dispatch(args): | 111 def dispatch(args): |