# HG changeset patch # User Anton Shestakov # Date 1611919427 -28800 # Node ID 3fb72f8c66e75f667a4061e3b896b14e5f1de5ef # Parent fd76c1ca65da3627d4804cd3176be544bfa84e3d compat: make enforcesinglehead() compatible with hg <= 5.1 again aa905c52ede5 removed the default value for accountclosed that was providing compatibility for older versions of Mercurial. diff -r fd76c1ca65da -r 3fb72f8c66e7 hgext3rd/evolve/headchecking.py --- a/hgext3rd/evolve/headchecking.py Wed Jan 27 18:10:27 2021 +0800 +++ b/hgext3rd/evolve/headchecking.py Fri Jan 29 19:23:47 2021 +0800 @@ -164,7 +164,7 @@ new_heads.sort() return new_heads -def enforcesinglehead(orig, repo, tr, desc, accountclosed, filtername=b'visible'): +def enforcesinglehead(orig, repo, tr, desc, accountclosed=False, filtername=b'visible'): """check that no named branch has multiple heads COMPAT: this is the same as the upstream version as of c701f616d852, except