# HG changeset patch # User Vadim Gelfer # Date 1148075865 25200 # Node ID d0ba2f6b9d975a0c2dfc7d931bdddc5d5e58e83c # Parent d9ca698e3c5a051075cce3aa84e1308939c13f4b notify: fix off by one error. diff -r d9ca698e3c5a -r d0ba2f6b9d97 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