Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jun 01 00:25:42 2005 -0800 +++ b/mercurial/commands.py Wed Jun 01 10:40:19 2005 -0800 @@ -90,6 +90,9 @@ for p,l in zip(zip(*pieces), lines): u.write(" ".join(p) + ": " + l[1]) +def undo(ui, repo, args): + repo.undo() + table = { "init": (init, [], 'hg init'), "help": (help, [], 'hg init'), @@ -100,6 +103,7 @@ ('n', 'number', None, 'show revision number'), ('c', 'changeset', None, 'show changeset')], 'hg annotate [-u] [-c] [-n] [-r id] [files]'), + "undo": (undo, [], 'hg undo'), } norepo = "init branch help"