[Updated] D8592: filemerge: add __bytes__ for absentfilectx
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri May 29 17:06:55 UTC 2020
Closed by commit rHGaa790f7c967a: filemerge: add __bytes__ for absentfilectx (authored by durin42).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8592?vs=21506&id=21530
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8592/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8592
AFFECTED FILES
mercurial/filemerge.py
CHANGE DETAILS
diff --git a/mercurial/filemerge.py b/mercurial/filemerge.py
--- a/mercurial/filemerge.py
+++ b/mercurial/filemerge.py
@@ -98,6 +98,9 @@
self._ctx = ctx
self._f = f
+ def __bytes__(self):
+ return b'absent file %s@%s' % (self._f, self._ctx)
+
def path(self):
return self._f
To: durin42, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200529/10a933bc/attachment-0002.html>
More information about the Mercurial-patches
mailing list