discovery: make "note: unsynced remote changes!" less serious than a warning
authorMads Kiilerich <madski@unity3d.com>
Fri, 07 Feb 2014 17:24:12 +0100
changeset 20502 7648e9aef6ee
parent 20501 8a9e0b523d2d
child 20503 23dc77874191
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.
mercurial/discovery.py
--- 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)