mercurial/patch.py
changeset 11018 17cf756ba25d
parent 10966 91c58cf54eee
child 11019 4fe28bdc27be
equal deleted inserted replaced
11017:80b9101688ac 11018:17cf756ba25d
   300 
   300 
   301     def setmode(self, mode):
   301     def setmode(self, mode):
   302         islink = mode & 020000
   302         islink = mode & 020000
   303         isexec = mode & 0100
   303         isexec = mode & 0100
   304         self.mode = (islink, isexec)
   304         self.mode = (islink, isexec)
       
   305 
       
   306     def __repr__(self):
       
   307         return "<patchmeta %s %r>" % (self.op, self.path)
   305 
   308 
   306 def readgitpatch(lr):
   309 def readgitpatch(lr):
   307     """extract git-style metadata about patches from <patchname>"""
   310     """extract git-style metadata about patches from <patchname>"""
   308 
   311 
   309     # Filter patch for git information
   312     # Filter patch for git information