Mercurial > hg-stable
changeset 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 |
files | mercurial/commands.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Jul 14 22:56:55 2005 -0800 +++ b/mercurial/commands.py Fri Jul 15 08:32:45 2005 +0100 @@ -764,10 +764,10 @@ for f in files: ui.write("%40s %3s %s\n" % (hg.hex(m[f]), mf[f] and "755" or "644", f)) -def parents(ui, repo, node=None): - '''show the parents of the current working dir''' - if node: - p = repo.changelog.parents(repo.lookup(hg.bin(node))) +def parents(ui, repo, rev=None): + """show the parents of the working dir or revision""" + if rev: + p = repo.changelog.parents(repo.lookup(rev)) else: p = repo.dirstate.parents()