# HG changeset patch # User Martin von Zweigbergk # Date 1516442838 -3600 # Node ID cbeee8d31d58e2b592404ba7c0851ba923b49a6d # Parent be284a34b822edb86d42f382a2cc19698f692c55 trouble-reports: yield to in code reporting of new troubles Mercurial 4.5 has the feature in core, let core do the reporting in this case. diff -r be284a34b822 -r cbeee8d31d58 hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Fri Jan 19 20:41:58 2018 +0100 +++ b/hgext3rd/evolve/__init__.py Sat Jan 20 11:07:18 2018 +0100 @@ -809,6 +809,10 @@ @eh.wrapcommand("unbundle") def warnobserrors(orig, ui, repo, *args, **kwargs): """display warning is the command resulted in more instable changeset""" + # hg < 4.4 does not have the feature built in. bail out otherwise. + if util.safehasattr(scmutil, '_reportstroubledchangesets'): + return orig(ui, repo, *args, **kwargs) + # part of the troubled stuff may be filtered (stash ?) # This needs a better implementation but will probably wait for core. filtered = repo.changelog.filteredrevs