diff hgext/mq.py @ 14600:17c16bcf6926

mq: catch correct exception when calling changelog.rev()
author Idan Kamara <idankk86@gmail.com>
date Sun, 12 Jun 2011 23:30:39 +0300
parents 6a0070d00bc8
children 2b9c32929e62
line wrap: on
line diff
--- 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