mercurial/cmdutil.py
changeset 31216 21fa3d3688f3
parent 31196 3af9a9628ecf
child 31237 1b08aca7870a
equal deleted inserted replaced
31215:15c998528c36 31216:21fa3d3688f3
   581     if not r:
   581     if not r:
   582         if not file_:
   582         if not file_:
   583             raise error.CommandError(cmd, _('invalid arguments'))
   583             raise error.CommandError(cmd, _('invalid arguments'))
   584         if not os.path.isfile(file_):
   584         if not os.path.isfile(file_):
   585             raise error.Abort(_("revlog '%s' not found") % file_)
   585             raise error.Abort(_("revlog '%s' not found") % file_)
   586         r = revlog.revlog(scmutil.opener(pycompat.getcwd(), audit=False),
   586         r = revlog.revlog(scmutil.vfs(pycompat.getcwd(), audit=False),
   587                           file_[:-2] + ".i")
   587                           file_[:-2] + ".i")
   588     return r
   588     return r
   589 
   589 
   590 def copy(ui, repo, pats, opts, rename=False):
   590 def copy(ui, repo, pats, opts, rename=False):
   591     # called with the repo lock held
   591     # called with the repo lock held