hgext/convert/hg.py
changeset 36340 06464d1ce6cd
parent 36148 0f9e52f900c4
child 36607 c6061cadb400
--- a/hgext/convert/hg.py	Tue Feb 06 08:49:37 2018 -0800
+++ b/hgext/convert/hg.py	Tue Feb 06 08:52:12 2018 -0800
@@ -563,12 +563,7 @@
                 if copysource in self.ignored:
                     continue
                 # Ignore copy sources not in parent revisions
-                found = False
-                for p in parents:
-                    if copysource in p:
-                        found = True
-                        break
-                if not found:
+                if not any(copysource in p for p in parents):
                     continue
                 copies[name] = copysource
             except TypeError: