Submitter | Pulkit Goyal |
---|---|
Date | June 23, 2017, 7:54 p.m. |
Message ID | <4fc224b346e387d4f79a.1498247697@workspace> |
Download | mbox | patch |
Permalink | /patch/21646/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -1582,6 +1582,7 @@ Returns an iterator over raw chunks (of varying sizes). """ + kwargs = pycompat.byteskwargs(kwargs) usebundle2 = bundle2requested(bundlecaps) # bundle10 case if not usebundle2: diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -1303,6 +1303,7 @@ return stringify(self('', **mapping)) def __call__(self, t, **mapping): + mapping = pycompat.byteskwargs(mapping) ttype = t in self.map and self.map[t][0] or 'default' if ttype not in self.ecache: try: