[Updated] D8650: copies: implement __repr__ on branch_copies for debugging
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Jun 23 10:13:16 UTC 2020
Closed by commit rHGcfd06649a1b8: copies: implement __repr__ on branch_copies for debugging (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8650?vs=21687&id=21689
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8650/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8650
AFFECTED FILES
mercurial/copies.py
CHANGE DETAILS
diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -636,6 +636,12 @@
self.dirmove = {} if dirmove is None else dirmove
self.movewithdir = {} if movewithdir is None else movewithdir
+ def __repr__(self):
+ return (
+ '<branch_copies\n copy=%r\n renamedelete=%r\n dirmove=%r\n movewithdir=%r\n>'
+ % (self.copy, self.renamedelete, self.dirmove, self.movewithdir,)
+ )
+
def _fullcopytracing(repo, c1, c2, base):
""" The full copytracing algorithm which finds all the new files that were
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200623/06dd1353/attachment-0002.html>
More information about the Mercurial-patches
mailing list