notify: fix off by one error.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Fri, 19 May 2006 14:57:45 -0700
changeset 2326 d0ba2f6b9d97
parent 2321 d9ca698e3c5a
child 2327 185cb7fffbeb
notify: fix off by one error.
hgext/notify.py
--- a/hgext/notify.py	Thu May 18 11:48:03 2006 -0700
+++ b/hgext/notify.py	Fri May 19 14:57:45 2006 -0700
@@ -123,7 +123,7 @@
 
         path = util.pconvert(path)
         count = self.stripcount
-        while path and count >= 0:
+        while count > 0:
             c = path.find('/')
             if c == -1:
                 break