diff hgext/convert/cvs.py @ 5182:7e05bdeee7de

convert: raise Abort instead of NoRepo when CVS pserver auth fails. At this point we know the source is CVS, so we should not go through the rest of the converters.
author Brendan Cully <brendan@kublai.com>
date Wed, 15 Aug 2007 14:38:18 -0700
parents 7106f4899aa0
children 9400d677efc7
line wrap: on
line diff
--- a/hgext/convert/cvs.py	Wed Aug 15 13:21:23 2007 -0700
+++ b/hgext/convert/cvs.py	Wed Aug 15 14:38:18 2007 -0700
@@ -153,7 +153,7 @@
                 sck.send("\n".join(["BEGIN AUTH REQUEST", root, user, passw,
                                     "END AUTH REQUEST", ""]))
                 if sck.recv(128) != "I LOVE YOU\n":
-                    raise NoRepo("CVS pserver authentication failed")
+                    raise util.Abort("CVS pserver authentication failed")
 
                 self.writep = self.readp = sck.makefile('r+')