# HG changeset patch # User Mads Kiilerich # Date 2010-04-26 11:21:02 # Node ID 17cf756ba25d2b33858293aa103109f9b35bc56e # Parent 80b9101688ac0cb26e4ead6eb85c5e8f0b6459ee patch: descriptive patchmeta.__repr__ to help debugging diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -303,6 +303,9 @@ class patchmeta(object): isexec = mode & 0100 self.mode = (islink, isexec) + def __repr__(self): + return "" % (self.op, self.path) + def readgitpatch(lr): """extract git-style metadata about patches from """