comparison mercurial/commands.py @ 706:5107a7b6b14a

Make "hg parents REV" work (again?) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Make "hg parents REV" work (again?) manifest hash: d14db0d23b539ad0b754a51a83926d14f1be9a6e -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC12adW7P1GVgWeRoRAtknAJ9TeUybLWYWY+Bi2b5grmAspgfemwCeP9cd 6mYSTWIsovCqW59KIrEvVVo= =u5nR -----END PGP SIGNATURE-----
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 15 Jul 2005 08:32:45 +0100
parents 574869103985
children 116b2d3f4554
comparison
equal deleted inserted replaced
705:574869103985 706:5107a7b6b14a
762 files.sort() 762 files.sort()
763 763
764 for f in files: 764 for f in files:
765 ui.write("%40s %3s %s\n" % (hg.hex(m[f]), mf[f] and "755" or "644", f)) 765 ui.write("%40s %3s %s\n" % (hg.hex(m[f]), mf[f] and "755" or "644", f))
766 766
767 def parents(ui, repo, node=None): 767 def parents(ui, repo, rev=None):
768 '''show the parents of the current working dir''' 768 """show the parents of the working dir or revision"""
769 if node: 769 if rev:
770 p = repo.changelog.parents(repo.lookup(hg.bin(node))) 770 p = repo.changelog.parents(repo.lookup(rev))
771 else: 771 else:
772 p = repo.dirstate.parents() 772 p = repo.dirstate.parents()
773 773
774 for n in p: 774 for n in p:
775 if n != hg.nullid: 775 if n != hg.nullid: