Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 4257:1b5c38e9d7aa
revlog: don't pass datafile as an argument
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 22 Mar 2007 19:12:03 -0500 |
parents | fe0fe0b4d73b |
children | b11a2fb59cf5 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Mar 20 22:21:05 2007 -0300 +++ b/mercurial/commands.py Thu Mar 22 19:12:03 2007 -0500 @@ -666,7 +666,7 @@ def debugancestor(ui, index, rev1, rev2): """find the ancestor revision of two revisions in a given index""" - r = revlog.revlog(util.opener(os.getcwd(), audit=False), index, "", 0) + r = revlog.revlog(util.opener(os.getcwd(), audit=False), index, 0) a = r.ancestor(r.lookup(rev1), r.lookup(rev2)) ui.write("%d:%s\n" % (r.rev(a), hex(a))) @@ -796,7 +796,7 @@ def debugdata(ui, file_, rev): """dump the contents of an data file revision""" r = revlog.revlog(util.opener(os.getcwd(), audit=False), - file_[:-2] + ".i", file_, 0) + file_[:-2] + ".i", 0) try: ui.write(r.revision(r.lookup(rev))) except KeyError: @@ -816,7 +816,7 @@ def debugindex(ui, file_): """dump the contents of an index file""" - r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_, "", 0) + r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_, 0) ui.write(" rev offset length base linkrev" + " nodeid p1 p2\n") for i in xrange(r.count()): @@ -828,7 +828,7 @@ def debugindexdot(ui, file_): """dump an index DAG as a .dot file""" - r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_, "", 0) + r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_, 0) ui.write("digraph G {\n") for i in xrange(r.count()): node = r.node(i)