mercurial/commands.py
changeset 247 863b508c5b36
parent 246 96cde50a746f
child 248 b7645b3c86ff
equal deleted inserted replaced
246:96cde50a746f 247:863b508c5b36
   386     t = repo.changelog.rev(n)
   386     t = repo.changelog.rev(n)
   387     ui.status("%d:%s\n" % (t, hg.hex(n)))
   387     ui.status("%d:%s\n" % (t, hg.hex(n)))
   388 
   388 
   389 def undo(ui, repo):
   389 def undo(ui, repo):
   390     repo.undo()
   390     repo.undo()
       
   391 
       
   392 def verify(ui, repo):
       
   393     """verify the integrity of the repository"""
       
   394     return repo.verify()
   391 
   395 
   392 table = {
   396 table = {
   393     "add": (add, [], "hg add [files]"),
   397     "add": (add, [], "hg add [files]"),
   394     "addremove": (addremove, [], "hg addremove"),
   398     "addremove": (addremove, [], "hg addremove"),
   395     "ann|annotate": (annotate,
   399     "ann|annotate": (annotate,
   434                       ('t', 'templates', "", 'template map')],
   438                       ('t', 'templates', "", 'template map')],
   435               "hg serve [options]"),
   439               "hg serve [options]"),
   436     "status": (status, [], 'hg status'),
   440     "status": (status, [], 'hg status'),
   437     "tip": (tip, [], 'hg tip'),
   441     "tip": (tip, [], 'hg tip'),
   438     "undo": (undo, [], 'hg undo'),
   442     "undo": (undo, [], 'hg undo'),
       
   443     "verify": (verify, [], 'hg verify'),
   439     }
   444     }
   440 
   445 
   441 norepo = "init branch help"
   446 norepo = "init branch help"
   442 
   447 
   443 def find(cmd):
   448 def find(cmd):