##// END OF EJS Templates
vfs: use 'vfs' module directly in 'mercurial.cmdutil'...
Pierre-Yves David -
r31237:1b08aca7 default
parent child Browse files
Show More
@@ -45,6 +45,7 b' from . import ('
45 templatekw,
45 templatekw,
46 templater,
46 templater,
47 util,
47 util,
48 vfs as vfsmod,
48 )
49 )
49 stringio = util.stringio
50 stringio = util.stringio
50
51
@@ -583,7 +584,7 b' def openrevlog(repo, cmd, file_, opts):'
583 raise error.CommandError(cmd, _('invalid arguments'))
584 raise error.CommandError(cmd, _('invalid arguments'))
584 if not os.path.isfile(file_):
585 if not os.path.isfile(file_):
585 raise error.Abort(_("revlog '%s' not found") % file_)
586 raise error.Abort(_("revlog '%s' not found") % file_)
586 r = revlog.revlog(scmutil.vfs(pycompat.getcwd(), audit=False),
587 r = revlog.revlog(vfsmod.vfs(pycompat.getcwd(), audit=False),
587 file_[:-2] + ".i")
588 file_[:-2] + ".i")
588 return r
589 return r
589
590
General Comments 0
You need to be logged in to leave comments. Login now