##// END OF EJS Templates
vfs: use 'vfs' module directly in 'mercurial.debugcommand'...
Pierre-Yves David -
r31239:9cdba607 default
parent child Browse files
Show More
@@ -63,6 +63,7 from . import (
63 templater,
63 templater,
64 treediscovery,
64 treediscovery,
65 util,
65 util,
66 vfs as vfsmod,
66 )
67 )
67
68
68 release = lockmod.release
69 release = lockmod.release
@@ -76,7 +77,7 def debugancestor(ui, repo, *args):
76 """find the ancestor revision of two revisions in a given index"""
77 """find the ancestor revision of two revisions in a given index"""
77 if len(args) == 3:
78 if len(args) == 3:
78 index, rev1, rev2 = args
79 index, rev1, rev2 = args
79 r = revlog.revlog(scmutil.vfs(pycompat.getcwd(), audit=False), index)
80 r = revlog.revlog(vfsmod.vfs(pycompat.getcwd(), audit=False), index)
80 lookup = r.lookup
81 lookup = r.lookup
81 elif len(args) == 2:
82 elif len(args) == 2:
82 if not repo:
83 if not repo:
@@ -452,7 +453,7 def debugdag(ui, repo, file_=None, *revs
452 spaces = opts.get('spaces')
453 spaces = opts.get('spaces')
453 dots = opts.get('dots')
454 dots = opts.get('dots')
454 if file_:
455 if file_:
455 rlog = revlog.revlog(scmutil.vfs(pycompat.getcwd(), audit=False),
456 rlog = revlog.revlog(vfsmod.vfs(pycompat.getcwd(), audit=False),
456 file_)
457 file_)
457 revs = set((int(r) for r in revs))
458 revs = set((int(r) for r in revs))
458 def events():
459 def events():
General Comments 0
You need to be logged in to leave comments. Login now