gpg, commands: fixed util.abort to util.Abort typos stable
authorRichard Hopkins
Tue, 09 Nov 2010 20:25:56 +0000
branchstable
changeset 12965 0d4fb319974b
parent 12962 ff083040a555
child 12966 5f80f44d23c5
gpg, commands: fixed util.abort to util.Abort typos gpg: Fixed util.abort typo after entering wrong password. commands: Fixed util.abort typo in debugindex.
hgext/gpg.py
mercurial/commands.py
--- a/hgext/gpg.py	Sun Nov 07 20:18:57 2010 +0100
+++ b/hgext/gpg.py	Tue Nov 09 20:25:56 2010 +0000
@@ -227,7 +227,7 @@
         data = node2txt(repo, n, sigver)
         sig = mygpg.sign(data)
         if not sig:
-            raise util.abort(_("error while signing"))
+            raise util.Abort(_("error while signing"))
         sig = binascii.b2a_base64(sig)
         sig = sig.replace("\n", "")
         sigmessage += "%s %s %s\n" % (hexnode, sigver, sig)
--- a/mercurial/commands.py	Sun Nov 07 20:18:57 2010 +0100
+++ b/mercurial/commands.py	Tue Nov 09 20:25:56 2010 +0000
@@ -1270,7 +1270,7 @@
 
     format = opts.get('format', 0)
     if format not in (0, 1):
-        raise util.abort("unknown format %d" % format)
+        raise util.Abort("unknown format %d" % format)
 
     if not r:
         r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_)