Submitter | Augie Fackler |
---|---|
Date | March 12, 2017, 5:59 p.m. |
Message ID | <beead9d5be6f5fe44de5.1489341552@augie-macbookair2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/19193/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -65,6 +65,12 @@ class basectx(object): return o def __str__(self): + r = short(self.node()) + if pycompat.ispy3: + return r.decode('ascii') + return r + + def __bytes__(self): return short(self.node()) def __int__(self):