Mercurial > hg
changeset 1093:1f1661c58283
commands: use revlog directly for debug commands
This eliminates the import in hg.py
author | mpm@selenic.com |
---|---|
date | Sat, 27 Aug 2005 14:56:58 -0700 |
parents | 0a02315976ff |
children | 221b5252864c |
files | mercurial/commands.py mercurial/hg.py |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Aug 27 14:55:07 2005 -0700 +++ b/mercurial/commands.py Sat Aug 27 14:56:58 2005 -0700 @@ -8,7 +8,7 @@ from demandload import demandload from node import * demandload(globals(), "os re sys signal shutil imp") -demandload(globals(), "fancyopts ui hg util lock") +demandload(globals(), "fancyopts ui hg util lock revlog") demandload(globals(), "fnmatch hgweb mdiff random signal time traceback") demandload(globals(), "errno socket version struct atexit sets") @@ -691,12 +691,12 @@ def debugdata(ui, file_, rev): """dump the contents of an data file revision""" - r = hg.revlog(file, file_[:-2] + ".i", file_) + r = revlog.revlog(file, file_[:-2] + ".i", file_) ui.write(r.revision(r.lookup(rev))) def debugindex(ui, file_): """dump the contents of an index file""" - r = hg.revlog(file, file_, "") + r = revlog.revlog(file, file_, "") ui.write(" rev offset length base linkrev" + " nodeid p1 p2\n") for i in range(r.count()): @@ -707,7 +707,7 @@ def debugindexdot(ui, file_): """dump an index DAG as a .dot file""" - r = hg.revlog(file, file_, "") + r = revlog.revlog(file, file_, "") ui.write("digraph G {\n") for i in range(r.count()): e = r.index[i]