mq: catch correct exception when calling changelog.rev()
authorIdan Kamara <idankk86@gmail.com>
Sun, 12 Jun 2011 23:30:39 +0300
changeset 14600 17c16bcf6926
parent 14599 b28004513977
child 14601 25c1f3ddd927
mq: catch correct exception when calling changelog.rev()
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