[PATCH] mq: catch correct exception when calling changelog.rev()

Idan Kamara idankk86 at gmail.com
Sun Jun 12 15:30:53 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1307910639 -10800
# Node ID ab89aec091e5bf82429a08a2953d5614d5b2833f
# Parent  418d260d03ac9faa240a6dd6db7b985fea28ab15
mq: catch correct exception when calling changelog.rev()

diff -r 418d260d03ac -r ab89aec091e5 hgext/mq.py
--- a/hgext/mq.py	Sun Jun 12 17:26:58 2011 +0300
+++ b/hgext/mq.py	Sun Jun 12 23:30:39 2011 +0300
@@ -3136,7 +3136,7 @@
 
             try:
                 self.changelog.rev(mqtags[-1][0])
-            except error.RepoLookupError:
+            except error.LookupError:
                 self.ui.warn(_('mq status file refers to unknown node %s\n')
                              % short(mqtags[-1][0]))
                 return result


More information about the Mercurial-devel mailing list