changeset 15086:db0646afb725 stable

patch: handle 'gitpatches' being empty, but not none
author Dan Villiom Podlaski Christiansen <dan@cabo.dk>
date Sun, 11 Sep 2011 18:49:41 +0200
parents deed405e8980
children 31c9e2a702d1
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Sun Sep 11 19:13:56 2011 +0200
+++ b/mercurial/patch.py	Sun Sep 11 18:49:41 2011 +0200
@@ -1199,7 +1199,7 @@
             m = gitre.match(x)
             if not m:
                 continue
-            if gitpatches is None:
+            if not gitpatches:
                 # scan whole input for git metadata
                 gitpatches = [('a/' + gp.path, 'b/' + gp.path, gp) for gp
                               in scangitpatch(lr, x)]