diff -r f1eb77dceb36 -r ae27a0684e75 hgext/notify.py --- a/hgext/notify.py Thu Feb 03 18:14:11 2022 +0100 +++ b/hgext/notify.py Sun Feb 06 19:14:51 2022 +0300 @@ -435,7 +435,10 @@ if spec is None: subs.add(sub) continue - revs = self.repo.revs(b'%r and %d:', spec, ctx.rev()) + try: + revs = self.repo.revs(b'%r and %d:', spec, ctx.rev()) + except error.RepoLookupError: + continue if len(revs): subs.add(sub) continue