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