##// 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 b' from . import ('
63 63 templater,
64 64 treediscovery,
65 65 util,
66 vfs as vfsmod,
66 67 )
67 68
68 69 release = lockmod.release
@@ -76,7 +77,7 b' def debugancestor(ui, repo, *args):'
76 77 """find the ancestor revision of two revisions in a given index"""
77 78 if len(args) == 3:
78 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 81 lookup = r.lookup
81 82 elif len(args) == 2:
82 83 if not repo:
@@ -452,7 +453,7 b' def debugdag(ui, repo, file_=None, *revs'
452 453 spaces = opts.get('spaces')
453 454 dots = opts.get('dots')
454 455 if file_:
455 rlog = revlog.revlog(scmutil.vfs(pycompat.getcwd(), audit=False),
456 rlog = revlog.revlog(vfsmod.vfs(pycompat.getcwd(), audit=False),
456 457 file_)
457 458 revs = set((int(r) for r in revs))
458 459 def events():
General Comments 0
You need to be logged in to leave comments. Login now