Patchwork D2435: commitextras: fix on Python 3 by using sysstrs for __dict__ ops

login
register
mail settings
Submitter phabricator
Date Feb. 26, 2018, 5:38 a.m.
Message ID <dee579d9b266616bb86b768807dbdf5f@localhost.localdomain>
Download mbox | patch
Permalink /patch/28370/
State Not Applicable
Headers show

Comments

phabricator - Feb. 26, 2018, 5:38 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG75c76cee1b1b: commitextras: fix on Python 3 by using sysstrs for __dict__ ops (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2435?vs=6080&id=6093

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

AFFECTED FILES
  hgext/commitextras.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/commitextras.py b/hgext/commitextras.py
--- a/hgext/commitextras.py
+++ b/hgext/commitextras.py
@@ -70,7 +70,7 @@ 
 
         # This __dict__ logic is needed because the normal
         # extension.wrapfunction doesn't seem to work.
-        repo.__dict__['commit'] = _wrappedcommit
+        repo.__dict__[r'commit'] = _wrappedcommit
         return orig(ui, repo, *pats, **opts)
     finally:
-        del repo.__dict__['commit']
+        del repo.__dict__[r'commit']