mercurial/commands.py
changeset 27147 804abe8999f3
parent 27144 24440cc7b441
child 27148 39163708825c
--- a/mercurial/commands.py	Sat Nov 28 04:11:14 2015 -0500
+++ b/mercurial/commands.py	Sat Nov 28 04:11:38 2015 -0500
@@ -3831,10 +3831,10 @@
             if opts.get('dry_run'):
                 continue
 
-            source = ctx.extra().get('source')
-            extra = {}
+            extra = ctx.extra().copy()
+            del extra['branch']
+            source = extra.get('source')
             if source:
-                extra['source'] = source
                 extra['intermediate-source'] = ctx.hex()
             else:
                 extra['source'] = ctx.hex()