merge with stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 30 Jul 2012 12:37:33 +0200
changeset 399 4d63f8a00787
parent 398 42828b0ace98 (current diff)
parent 396 9dda5c1f6a45 (diff)
child 403 c2ef47fce3f9
merge with stable
hgext/obsolete.py
--- a/hgext/qsync.py	Sun Jul 29 17:25:47 2012 +0200
+++ b/hgext/qsync.py	Mon Jul 30 12:37:33 2012 +0200
@@ -86,7 +86,7 @@
                 obsolete = extensions.find('obsolete')
                 newnodes = obsolete.newerversion(repo, oldnode)
                 if newnodes:
-                    newnodes = [n for n in newnodes if n] # remove killing
+                    newnodes = [n for n in newnodes if n and n[0] in repo] # remove killing
                 if not newnodes:
                     # changeset has been killed (eg. reject)
                     pass
@@ -175,7 +175,7 @@
         oldnode = bin(oldhex)
         newnodes = obsolete.newerversion(repo, oldnode)
         if newnodes:
-            newnodes = [n for n in newnodes if n] # remove killing
+            newnodes = [n for n in newnodes if n and n[0] in repo] # remove killing
             if len(newnodes) > 1:
                 newnodes = [short(nodes[0]) for nodes in newnodes]
                 raise util.Abort('%s have more than one newer version: %s'% (oldname, newnodes))