changeset 20502:7648e9aef6ee

discovery: make "note: unsynced remote changes!" less serious than a warning This situation is not necessarily a problem and do not deserve a warning. It is just some information that can guide the user in understanding what is going on. Making it 'debug' would usually not give the hint when it is relevant so we make it a 'status' message.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 07 Feb 2014 17:24:12 +0100
parents 8a9e0b523d2d
children 23dc77874191
files mercurial/discovery.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/discovery.py	Thu Feb 06 02:19:38 2014 +0100
+++ b/mercurial/discovery.py	Fri Feb 07 17:24:12 2014 +0100
@@ -315,11 +315,11 @@
         if unsynced:
             heads = ' '.join(short(h) for h in unsynced)
             if branch is None:
-                repo.ui.warn(_("remote has heads that are "
-                               "not known locally: %s\n") % heads)
+                repo.ui.status(_("remote has heads that are "
+                                 "not known locally: %s\n") % heads)
             else:
-                repo.ui.warn(_("remote has heads on branch '%s' that are "
-                               "not known locally: %s\n") % (branch, heads))
+                repo.ui.status(_("remote has heads on branch '%s' that are "
+                                 "not known locally: %s\n") % (branch, heads))
         if remoteheads is None:
             if len(newhs) > 1:
                 dhs = list(newhs)