changeset 2326:d0ba2f6b9d97

notify: fix off by one error.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 19 May 2006 14:57:45 -0700
parents d9ca698e3c5a
children 185cb7fffbeb
files hgext/notify.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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