[Request] [+ ] D8592: filemerge: add __bytes__ for absentfilectx
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu May 28 20:26:01 UTC 2020
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This will at _least_ aid some upcoming debugging.
REPOSITORY
rHG Mercurial
BRANCH
default
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, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200528/f566d527/attachment.html>
More information about the Mercurial-patches
mailing list