equal
deleted
inserted
replaced
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 |