Patchwork D6159: memfilectx: override copysource() instead of using dummy nodeid

login
register
mail settings
Submitter phabricator
Date March 21, 2019, 11:25 p.m.
Message ID <410c2498fadba44fa4aa93f8144cd734@localhost.localdomain>
Download mbox | patch
Permalink /patch/39351/
State Not Applicable
Headers show

Comments

phabricator - March 21, 2019, 11:25 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6fef387af1da: memfilectx: override copysource() instead of using dummy nodeid (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6159?vs=14565&id=14578

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

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2393,9 +2393,10 @@ 
             self._flags = 'x'
         else:
             self._flags = ''
-        self._copied = None
-        if copysource:
-            self._copied = (copysource, nullid)
+        self._copysource = copysource
+
+    def copysource(self):
+        return self._copysource
 
     def cmp(self, fctx):
         return self.data() != fctx.data()