comparison mercurial/logcmdutil.py @ 43117:8ff1ecfadcd1

cleanup: join string literals that are already on one line Thanks to Kyle for noticing this and for providing the regular expression to run on the codebase. This patch has been reviewed by the test suite and they approved of it. # skip-blame: fallout from mass reformatting Differential Revision: https://phab.mercurial-scm.org/D7028
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 08 Oct 2019 15:06:18 -0700
parents d783f945a701
children af9c73f26371 d1b9d2c6ec96
comparison
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: