##// END OF EJS Templates
mq: fix up statusentry to be both repr()-able and bytes()-able...
Augie Fackler -
r35860:9bce2860 default
parent child Browse files
Show More
@@ -148,9 +148,13 b' normname = util.normpath'
148 148 class statusentry(object):
149 149 def __init__(self, node, name):
150 150 self.node, self.name = node, name
151 def __repr__(self):
151
152 def __bytes__(self):
152 153 return hex(self.node) + ':' + self.name
153 154
155 __str__ = encoding.strmethod(__bytes__)
156 __repr__ = encoding.strmethod(__bytes__)
157
154 158 # The order of the headers in 'hg export' HG patches:
155 159 HGHEADERS = [
156 160 # '# HG changeset patch',
General Comments 0
You need to be logged in to leave comments. Login now