Patchwork D5409: remotefilelog: accepting a None node to cmp

login
register
mail settings
Submitter phabricator
Date Dec. 11, 2018, 2:09 a.m.
Message ID <debb1f591e05414b3ef943894d50fdbe@localhost.localdomain>
Download mbox | patch
Permalink /patch/37105/
State Not Applicable
Headers show

Comments

phabricator - Dec. 11, 2018, 2:09 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4e17679c336b: remotefilelog: accepting a None node to cmp (authored by rdamazio, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5409?vs=12820&id=12821

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

AFFECTED FILES
  hgext/remotefilelog/remotefilelog.py

CHANGE DETAILS




To: rdamazio, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/remotefilelog/remotefilelog.py b/hgext/remotefilelog/remotefilelog.py
--- a/hgext/remotefilelog/remotefilelog.py
+++ b/hgext/remotefilelog/remotefilelog.py
@@ -187,7 +187,7 @@ 
         returns True if text is different than what is stored.
         """
 
-        if node == nullid:
+        if not node or node == nullid:
             return True
 
         nodetext = self.read(node)