Bug 1054112 - Remove some CR from prevent_uuid_changes.py; r=edmorley
authorGregory Szorc <gps@mozilla.com>
Thu, 14 Aug 2014 21:04:26 -0700
changeset 920 4fbca8878852
parent 919 e4c22c0819a2
child 921 6f1da8433d97
push id129
push usergszorc@mozilla.com
push dateFri, 15 Aug 2014 17:47:15 +0000
treeherderversion-control-tools@6f1da8433d97 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersedmorley
bugs1054112
Bug 1054112 - Remove some CR from prevent_uuid_changes.py; r=edmorley Carriage returns have no place in Mercurial. Kill them.
hghooks/mozhghooks/prevent_uuid_changes.py
--- a/hghooks/mozhghooks/prevent_uuid_changes.py
+++ b/hghooks/mozhghooks/prevent_uuid_changes.py
@@ -30,18 +30,18 @@ def hook(ui, repo, hooktype, node, **kwa
             # Only Check IDL Files
             if file.endswith('.idl'):
                 bc = True
                 if not re.search('ba\S*=', repo.changectx('tip').description().lower()):
                         error += "IDL file %s altered in this changeset" % file
     # Check if an error occured in any of the files that were changed
     if error != "":
         print "\n\n************************** ERROR ****************************"
-        ui.warn("\n\r*** " + error + "***\n\r")
-        print "\n\rChanges to IDL files in this repo require you to provide binary change approval in your top comment in the form of ba=... (or, more accurately, ba\\S*=...)\n\rThis is to ensure that UUID changes (or method changes missing corresponding UUID change) are caught early, before release.\n\r"
+        ui.warn("\n*** " + error + "***\n")
+        print "\nChanges to IDL files in this repo require you to provide binary change approval in your top comment in the form of ba=... (or, more accurately, ba\\S*=...)\nThis is to ensure that UUID changes (or method changes missing corresponding UUID change) are caught early, before release.\n"
         print "*************************************************************\n\n"
         # Reject the changesets
         return 1
     else:
         if bc:
             print "You've signaled approval for the binary change(s) in your push, thanks for the extra caution."
     # Accept the changesets
     return 0