# HG changeset patch # User Vadim Gelfer # Date 1148075865 25200 # Node ID d0ba2f6b9d975a0c2dfc7d931bdddc5d5e58e83c # Parent d9ca698e3c5a051075cce3aa84e1308939c13f4b notify: fix off by one error. diff --git a/hgext/notify.py b/hgext/notify.py --- 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