Mercurial > hg
diff mercurial/changegroup.py @ 27238:c3dc03109401
changegroup: drop 'if True' that made the previous change clearer
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 04 Dec 2015 10:35:45 -0500 |
parents | c08814b48ae5 |
children | 65c47779bcb5 |
line wrap: on
line diff
--- a/mercurial/changegroup.py Fri Dec 04 10:34:58 2015 -0500 +++ b/mercurial/changegroup.py Fri Dec 04 10:35:45 2015 -0500 @@ -673,17 +673,16 @@ if not fastpathlinkrev: mdata = ml.readfast(x) for f in mfchangedfiles[x]: - if True: - try: - n = mdata[f] - except KeyError: - continue - # record the first changeset introducing this filelog - # version - fclnodes = fnodes.setdefault(f, {}) - fclnode = fclnodes.setdefault(n, clnode) - if clrevorder[clnode] < clrevorder[fclnode]: - fclnodes[n] = clnode + try: + n = mdata[f] + except KeyError: + continue + # record the first changeset introducing this filelog + # version + fclnodes = fnodes.setdefault(f, {}) + fclnode = fclnodes.setdefault(n, clnode) + if clrevorder[clnode] < clrevorder[fclnode]: + fclnodes[n] = clnode return clnode mfnodes = self.prune(ml, mfs, commonrevs)