# HG changeset patch # User Stanislau Hlebik # Date 1496062335 25200 # Node ID 931b7707179f04a4a6d6c18e4431e282e9e33c9c # Parent c8c9feffbd359a0df206c4971b1dc9f78e15572f copies: rename m2 to mdst Small refactoring to rename m2 to more clearer mdst. diff -r c8c9feffbd35 -r 931b7707179f mercurial/copies.py --- a/mercurial/copies.py Mon May 29 05:52:15 2017 -0700 +++ b/mercurial/copies.py Mon May 29 05:52:15 2017 -0700 @@ -598,14 +598,14 @@ except StopIteration: return False -def _checkcopies(ctx, f, msrc, m2, base, tca, remotebase, limit, data): +def _checkcopies(ctx, f, msrc, mdst, base, tca, remotebase, limit, data): """ - check possible copies of f from msrc to m2 + check possible copies of f from msrc to mdst ctx = starting context for f in msrc f = the filename to check (as in msrc) msrc = the source manifest - m2 = the destination manifest + mdst = the destination manifest base = the changectx used as a merge base tca = topological common ancestor for graft-like scenarios remotebase = True if base is outside tca::ctx, False otherwise @@ -653,11 +653,11 @@ data['fullcopy'][of] = f # grafting backwards through renames else: data['fullcopy'][f] = of - if of not in m2: + if of not in mdst: continue # no match, keep looking - if m2[of] == mb.get(of): + if mdst[of] == mb.get(of): return # no merge needed, quit early - c2 = getfctx(of, m2[of]) + c2 = getfctx(of, mdst[of]) # c2 might be a plain new file on added on destination side that is # unrelated to the droids we are looking for. cr = _related(oc, c2, tca.rev())