[Updated] D12134: notify: don't produce errors if a revision is not found
av6 (Anton Shestakov)
phabricator at mercurial-scm.org
Mon Feb 7 14:05:04 UTC 2022
Closed by commit rHGae27a0684e75: notify: don't produce errors if a revision is not found (authored by av6).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12134?vs=32078&id=32083
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12134/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12134
AFFECTED FILES
hgext/notify.py
CHANGE DETAILS
diff --git a/hgext/notify.py b/hgext/notify.py
--- a/hgext/notify.py
+++ b/hgext/notify.py
@@ -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
To: av6, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220207/4afba3b0/attachment-0002.html>
More information about the Mercurial-patches
mailing list