changeset 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
files mercurial/changegroup.py
diffstat 1 files changed, 10 insertions(+), 11 deletions(-) [+]
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)