diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/patch.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/patch.py b/lib/patch.py index 878aa3c3..b5949fd7 100644 --- a/lib/patch.py +++ b/lib/patch.py @@ -626,21 +626,6 @@ class PatchSet(object): return None """ - for i,p in enumerate(self.items): - if p.type in (HG, GIT): - # TODO: figure out how to deal with /dev/null entries - debug("stripping a/ and b/ prefixes") - if p.source != '/dev/null': - if not p.source.startswith("a/"): - warning("invalid source filename") - else: - p.source = p.source[2:] - if p.target != '/dev/null': - if not p.target.startswith("b/"): - warning("invalid target filename") - else: - p.target = p.target[2:] - p.source = xnormpath(p.source) p.target = xnormpath(p.target) |