mercurial/commands.py
branchstable
changeset 27974 bb14a81ce647
parent 27973 ce9696193175
child 27990 96bfd2875213
child 28288 e417e4512b0f
--- a/mercurial/commands.py	Wed Feb 03 08:59:46 2016 -0800
+++ b/mercurial/commands.py	Wed Feb 03 09:06:52 2016 -0800
@@ -4010,10 +4010,10 @@
         if opts.get('dry_run'):
             continue
 
-        extra = ctx.extra().copy()
-        del extra['branch']
-        source = extra.get('source')
+        source = ctx.extra().get('source')
+        extra = {}
         if source:
+            extra['source'] = source
             extra['intermediate-source'] = ctx.hex()
         else:
             extra['source'] = ctx.hex()