Mercurial > hg
comparison mercurial/changegroup.py @ 34734:3572b2031cec
devel-warn: add 'warn-' to 'devel.empty-changegroup' config
Rename 'devel.empty-changegroup' to 'devel.warn-empty- changegroup' in order
to clarify it controls a warning message.
No alias is installed since the previous configuration option was not
documented.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sun, 08 Oct 2017 21:42:32 +0200 |
parents | 05131c963767 |
children | d80380ba8e7d |
comparison
equal
deleted
inserted
replaced
34733:115efdd97088 | 34734:3572b2031cec |
---|---|
311 cgnodes = cl.addgroup(deltas, csmap, trp, addrevisioncb=onchangelog) | 311 cgnodes = cl.addgroup(deltas, csmap, trp, addrevisioncb=onchangelog) |
312 efiles = len(efiles) | 312 efiles = len(efiles) |
313 | 313 |
314 if not cgnodes: | 314 if not cgnodes: |
315 repo.ui.develwarn('applied empty changegroup', | 315 repo.ui.develwarn('applied empty changegroup', |
316 config='empty-changegroup') | 316 config='warn-empty-changegroup') |
317 clend = len(cl) | 317 clend = len(cl) |
318 changesets = clend - clstart | 318 changesets = clend - clstart |
319 repo.ui.progress(_('changesets'), None) | 319 repo.ui.progress(_('changesets'), None) |
320 self.callback = None | 320 self.callback = None |
321 | 321 |