hgext/notify.py
changeset 2326 d0ba2f6b9d97
parent 2296 6e8e3dd7976e
child 2329 90368f89340a
--- a/hgext/notify.py
+++ b/hgext/notify.py
@@ -123,7 +123,7 @@ class notifier(object):
 
         path = util.pconvert(path)
         count = self.stripcount
-        while path and count >= 0:
+        while count > 0:
             c = path.find('/')
             if c == -1:
                 break