Patchwork D2566: lfs: use byteskwargs() on some **kwargs for python 3 compat

login
register
mail settings
Submitter phabricator
Date March 2, 2018, 10:20 p.m.
Message ID <833cf9d04ec925f731061c5d602ca4a6@localhost.localdomain>
Download mbox | patch
Permalink /patch/28733/
State Not Applicable
Headers show

Comments

phabricator - March 2, 2018, 10:20 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe30be4d2ac60: lfs: use byteskwargs() on some **kwargs for python 3 compat (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2566?vs=6389&id=6395

REVISION DETAIL
  https://phab.mercurial-scm.org/D2566

AFFECTED FILES
  hgext/lfs/pointer.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/lfs/pointer.py b/hgext/lfs/pointer.py
--- a/hgext/lfs/pointer.py
+++ b/hgext/lfs/pointer.py
@@ -13,6 +13,7 @@ 
 
 from mercurial import (
     error,
+    pycompat,
 )
 
 class InvalidPointer(error.RevlogError):
@@ -23,7 +24,8 @@ 
 
     def __init__(self, *args, **kwargs):
         self['version'] = self.VERSION
-        super(gitlfspointer, self).__init__(*args, **kwargs)
+        super(gitlfspointer, self).__init__(*args)
+        self.update(pycompat.byteskwargs(kwargs))
 
     @classmethod
     def deserialize(cls, text):