# HG changeset patch # User Martin von Zweigbergk # Date 2020-06-19 16:27:02 # Node ID cfd06649a1b85a40a32207b86778aae25f82d4d7 # Parent 98f97026fa054408d04e5323db847fa343e8f606 copies: implement __repr__ on branch_copies for debugging Differential Revision: https://phab.mercurial-scm.org/D8650 diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -636,6 +636,12 @@ class branch_copies(object): self.dirmove = {} if dirmove is None else dirmove self.movewithdir = {} if movewithdir is None else movewithdir + def __repr__(self): + return ( + '' + % (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