hgext/mq.py
changeset 35882 9bce28609a95
parent 35166 25c543944bc0
child 35883 512113eb9d26
equal deleted inserted replaced
35881:7df43e0b9fc3 35882:9bce28609a95
   146 normname = util.normpath
   146 normname = util.normpath
   147 
   147 
   148 class statusentry(object):
   148 class statusentry(object):
   149     def __init__(self, node, name):
   149     def __init__(self, node, name):
   150         self.node, self.name = node, name
   150         self.node, self.name = node, name
   151     def __repr__(self):
   151 
       
   152     def __bytes__(self):
   152         return hex(self.node) + ':' + self.name
   153         return hex(self.node) + ':' + self.name
       
   154 
       
   155     __str__ = encoding.strmethod(__bytes__)
       
   156     __repr__ = encoding.strmethod(__bytes__)
   153 
   157 
   154 # The order of the headers in 'hg export' HG patches:
   158 # The order of the headers in 'hg export' HG patches:
   155 HGHEADERS = [
   159 HGHEADERS = [
   156 #   '# HG changeset patch',
   160 #   '# HG changeset patch',
   157     '# User ',
   161     '# User ',