hgext/mq.py
changeset 5294 e14118f92730
parent 5241 5517aa5aafb0
child 5336 24de027551c1
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1025,9 +1025,8 @@ class queue:
                 copies = {}
                 for dst in a:
                     src = repo.dirstate.copied(dst)
-                    if src is None:
-                        continue
-                    copies.setdefault(src, []).append(dst)
+                    if src is not None:
+                        copies.setdefault(src, []).append(dst)
                     repo.dirstate.add(dst)
                 # remember the copies between patchparent and tip
                 # this may be slow, so don't do it if we're not tracking copies