changegroup: improve the devel-warn to specify changelog was empty
authorPulkit Goyal <pulkit@yandex-team.ru>
Mon, 17 Sep 2018 18:21:17 +0300
changeset 39670 9b07ee0a1054
parent 39669 3f11cb1aeb90
child 39671 dee887072f27
changegroup: improve the devel-warn to specify changelog was empty Right now, the develwarn says "applied empty changegroup" which is not correct because we can send a changegroup without changelog with just manifest and filelogs and it will still say the same. Let's fix this to say that we are applying empty changelog from changegroup. In future patches I am will be adding functionality to send a changegroup from the server without an empty changelog. Differential Revision: https://phab.mercurial-scm.org/D4636
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Mon Sep 17 13:21:46 2018 +0800
+++ b/mercurial/changegroup.py	Mon Sep 17 18:21:17 2018 +0300
@@ -313,7 +313,7 @@
             efiles = len(efiles)
 
             if not cgnodes:
-                repo.ui.develwarn('applied empty changegroup',
+                repo.ui.develwarn('applied empty changelog from changegroup',
                                   config='warn-empty-changegroup')
             clend = len(cl)
             changesets = clend - clstart