Print newline in prepushkey hook
authorGregory Szorc <gps@mozilla.com>
Wed, 16 Oct 2013 16:00:03 -0700
changeset 51 3dc420de34e5f6b10d56ebd2257c1c00ccbb248b
parent 50 9bd88e34d7dcab13b6b4a665b216e48fff123e34
child 52 218c65fe5456f87fecb591cd02822d11d8f16939
push id34
push usergszorc@mozilla.com
push dateWed, 16 Oct 2013 23:00:05 +0000
Print newline in prepushkey hook
__init__.py
--- a/__init__.py
+++ b/__init__.py
@@ -501,17 +501,17 @@ def critic_hook(ui, repo, node=None, **o
 def reject_repo_names_hook(ui, repo, namespace=None, key=None, old=None,
         new=None, **kwargs):
     """prepushkey hook that prevents changes to reserved names.
 
     Names that begin with the name of a repository identifier are rejected.
     """
     if key.lower().startswith(tuple(REPOS.keys())):
         ui.warn('You are not allowed to push tags or bookmarks that share '
-            'names with official Mozilla repositories: %s' % key)
+            'names with official Mozilla repositories: %s\n' % key)
         return True
 
     return False
 
 
 def pullexpand(orig, ui, repo, source='default', **opts):
     """Wraps built-in pull command to expand aliases to multiple sources."""
     for tree, uri in resolve_trees_to_uris([source]):