mercurial/commands.py
changeset 210 d2badbd7d1ad
parent 209 63af1db35611
child 211 426d3c3ae363
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -90,6 +90,9 @@ def annotate(u, repo, args, **ops):
         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 @@ table = {
                       ('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"