convert: raise Abort instead of NoRepo when CVS pserver auth fails.
authorBrendan Cully <brendan@kublai.com>
Wed, 15 Aug 2007 14:38:18 -0700
changeset 5182 7e05bdeee7de
parent 5173 6b4c332f241b
child 5183 f8aa16533ddf
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.
hgext/convert/cvs.py
--- 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+')