comparison mercurial/commands.py @ 1194:c165cbf56bb1

Add doc string for debugrename.
author bos@serpentine.internal.keyresearch.com
date Thu, 01 Sep 2005 12:13:56 -0700
parents 04d1ca8ae9ec
children 71111d796e40
comparison
equal deleted inserted replaced
1193:04d1ca8ae9ec 1194:c165cbf56bb1
747 if e[5] != nullid: 747 if e[5] != nullid:
748 ui.write("\t%d -> %d\n" % (r.rev(e[5]), i)) 748 ui.write("\t%d -> %d\n" % (r.rev(e[5]), i))
749 ui.write("}\n") 749 ui.write("}\n")
750 750
751 def debugrename(ui, repo, file, rev=None): 751 def debugrename(ui, repo, file, rev=None):
752 """dump rename information"""
752 r = repo.file(relpath(repo, [file])[0]) 753 r = repo.file(relpath(repo, [file])[0])
753 if rev: 754 if rev:
754 try: 755 try:
755 # assume all revision numbers are for changesets 756 # assume all revision numbers are for changesets
756 n = repo.lookup(rev) 757 n = repo.lookup(rev)