D1896: obsolete: use native string when peeking in __dict__

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Feb 1 15:39:33 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3cec0055969b: obsolete: use native string when peeking in __dict__ (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1896?vs=4886&id=5067

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

AFFECTED FILES
  mercurial/obsolete.py

CHANGE DETAILS

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -570,7 +570,7 @@
         return len(self._all)
 
     def __nonzero__(self):
-        if not self._cached('_all'):
+        if not self._cached(r'_all'):
             try:
                 return self.svfs.stat('obsstore').st_size > 1
             except OSError as inst:
@@ -727,11 +727,11 @@
         markers = list(markers) # to allow repeated iteration
         self._data = self._data + rawdata
         self._all.extend(markers)
-        if self._cached('successors'):
+        if self._cached(r'successors'):
             _addsuccessors(self.successors, markers)
-        if self._cached('predecessors'):
+        if self._cached(r'predecessors'):
             _addpredecessors(self.predecessors, markers)
-        if self._cached('children'):
+        if self._cached(r'children'):
             _addchildren(self.children, markers)
         _checkinvalidmarkers(markers)
 



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


More information about the Mercurial-devel mailing list