mercurial/commands.py
branchstable
changeset 15360 73628b32d0c0
parent 15359 a5a8adf95e51
child 15373 9a2582e325a5
--- a/mercurial/commands.py	Mon Oct 24 16:57:14 2011 -0500
+++ b/mercurial/commands.py	Mon Oct 24 16:57:14 2011 -0500
@@ -2553,8 +2553,9 @@
         n = ctx.extra().get('source')
         if n and n in repo:
             r = repo[n].rev()
-            ui.warn(_('skipping already grafted revision %s\n') % r)
-            revs.remove(r)
+            if r in revs:
+                ui.warn(_('skipping already grafted revision %s\n') % r)
+                revs.remove(r)
     if not revs:
         return -1