comparison mercurial/commands.py @ 247:863b508c5b36

migrate verify -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 migrate verify Move the bulk of the verify code into the localrepository class and move the command into commands.py manifest hash: 793a8d0094d56ab0a411cd11d7fe7f39c923f209 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCog33ywK+sNU5EO8RApfBAJ4mCmiMmZE1fEfbR6sA+aP1csPvqQCfXHzY 3XK7yc19AivXf5HGKEOL3eM= =GISf -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sat, 04 Jun 2005 12:24:23 -0800
parents 96cde50a746f
children b7645b3c86ff
comparison
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):