diff mercurial/exchange.py @ 25640:39f0064a3079

bundle2.getunbundler: rename "header" to "magicstring" This is more consistent with the name used in the bundler class. Thanks goes to Martin von Zweigbergk for pointing this out.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 07 Apr 2015 14:14:27 -0700
parents 521c1a3139c9
children 328739ea70c3
line wrap: on
line diff
--- a/mercurial/exchange.py	Wed Jun 24 12:37:55 2015 -0500
+++ b/mercurial/exchange.py	Tue Apr 07 14:14:27 2015 -0700
@@ -36,7 +36,7 @@
             alg = changegroup.readexactly(fh, 2)
         return changegroup.cg1unpacker(fh, alg)
     elif version.startswith('2'):
-        return bundle2.getunbundler(ui, fh, header=magic + version)
+        return bundle2.getunbundler(ui, fh, magicstring=magic + version)
     else:
         raise util.Abort(_('%s: unknown bundle version %s') % (fname, version))