[PATCH] win32: copy-edit debugssl messages to match prevailing style

Kevin Bullock kbullock+mercurial at ringworld.org
Mon Jul 17 18:23:55 UTC 2017


# HG changeset patch
# User Kevin Bullock <kbullock+mercurial at ringworld.org>
# Date 1500315779 18000
#      Mon Jul 17 13:22:59 2017 -0500
# Node ID dcd0c87ef9e443e612e3b7eb4e1d7406df9549be
# Parent  9a2ee9591acc4d5f5ab6bbb7054cb62cb5f29a62
win32: copy-edit debugssl messages to match prevailing style

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -2074,7 +2074,7 @@ def debugssl(ui, repo, source=None, **op
     of the SSL error is likely another issue.
     '''
     if pycompat.osname != 'nt':
-        raise error.Abort(_('Certificate chain building is only possible on '
+        raise error.Abort(_('certificate chain building is only possible on '
                             'Windows'))
 
     if not source:
@@ -2092,7 +2092,7 @@ def debugssl(ui, repo, source=None, **op
     elif url.scheme == 'ssh':
         addr = (url.host, url.port or 22)
     else:
-        raise error.Abort(_("Only https and ssh connections are supported"))
+        raise error.Abort(_("only https and ssh connections are supported"))
 
     from . import win32
 
@@ -2103,19 +2103,19 @@ def debugssl(ui, repo, source=None, **op
         s.connect(addr)
         cert = s.getpeercert(True)
 
-        ui.status(_('Checking the certificate chain for %s.\n') % url.host)
+        ui.status(_('checking the certificate chain for %s\n') % url.host)
 
         complete = win32.checkcertificatechain(cert, build=False)
 
         if not complete:
-            ui.status(_('The certificate chain is incomplete.  Updating... '))
+            ui.status(_('certificate chain is incomplete, updating... '))
 
             if not win32.checkcertificatechain(cert):
-                ui.status(_('Failed.\n'))
+                ui.status(_('failed.\n'))
             else:
-                ui.status(_('Done.\n'))
+                ui.status(_('done.\n'))
         else:
-            ui.status(_('The full certificate chain is available.\n'))
+            ui.status(_('full certificate chain is available\n'))
     finally:
         s.close()
 


More information about the Mercurial-devel mailing list