mercurial/logcmdutil.py
changeset 43117 8ff1ecfadcd1
parent 43106 d783f945a701
child 43630 af9c73f26371
child 43740 d1b9d2c6ec96
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
   923     # Two-levels map of "rev -> file ctx -> [line range]".
   923     # Two-levels map of "rev -> file ctx -> [line range]".
   924     linerangesbyrev = {}
   924     linerangesbyrev = {}
   925     for fname, (fromline, toline) in _parselinerangeopt(repo, opts):
   925     for fname, (fromline, toline) in _parselinerangeopt(repo, opts):
   926         if fname not in wctx:
   926         if fname not in wctx:
   927             raise error.Abort(
   927             raise error.Abort(
   928                 _(b'cannot follow file not in parent ' b'revision: "%s"')
   928                 _(b'cannot follow file not in parent revision: "%s"') % fname
   929                 % fname
       
   930             )
   929             )
   931         fctx = wctx.filectx(fname)
   930         fctx = wctx.filectx(fname)
   932         for fctx, linerange in dagop.blockancestors(fctx, fromline, toline):
   931         for fctx, linerange in dagop.blockancestors(fctx, fromline, toline):
   933             rev = fctx.introrev()
   932             rev = fctx.introrev()
   934             if rev not in userrevs:
   933             if rev not in userrevs: