diff -r f924dd043974 -r 33b7283a3828 mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Jun 09 21:33:15 2017 +0900 +++ b/mercurial/wireproto.py Fri Jun 09 10:41:13 2017 -0700 @@ -754,7 +754,7 @@ """ # copy to prevent modification of the global list caps = list(wireprotocaps) - if streamclone.allowservergeneration(repo.ui): + if streamclone.allowservergeneration(repo): if repo.ui.configbool('server', 'preferuncompressed', False): caps.append('stream-preferred') requiredformats = repo.requirements & repo.supportedformats @@ -946,7 +946,7 @@ capability with a value representing the version and flags of the repo it is serving. Client checks to see if it understands the format. ''' - if not streamclone.allowservergeneration(repo.ui): + if not streamclone.allowservergeneration(repo): return '1\n' def getstream(it):