changeset 5735:3fb72f8c66e7 stable

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.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 29 Jan 2021 19:23:47 +0800
parents fd76c1ca65da
children f39fd921ecba 0c6bb79da287
files hgext3rd/evolve/headchecking.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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