Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 11018:17cf756ba25d
patch: descriptive patchmeta.__repr__ to help debugging
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 26 Apr 2010 13:21:02 +0200 |
parents | 91c58cf54eee |
children | 4fe28bdc27be |
comparison
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 |