(Arne Babenhauserheide)
2017-08-19: workaround for 3.8 func.norepo API requirement tip workaround for 3.8 func.norepo API requirement
diff --git a/staticsite.py b/staticsite.py --- a/staticsite.py +++ b/staticsite.py @@ -1588,6 +1588,9 @@ def staticsite(ui, repo, target=None, ** # upload the repo upload(ui, repo, target, opts["upload"], opts["force"]) +# adjust to 3.8 API change +staticsite.norepo = False + cmdtable = { # "command-name": (function-call, options-list, help-string) "site": (staticsite, @@ -1626,7 +1629,10 @@ def findcommonoutgoing(orig, *args, **op return fakeoutgoing() else: return orig(*args, **opts) + # really wrap the functions +# adjust to 3.8 API change +findcommonoutgoing.norepo = False extensions.wrapfunction(discovery, 'findcommonoutgoing', findcommonoutgoing) # explicitely wrap commands in case the remote repo is an FTP repo. @@ -1647,8 +1653,10 @@ def ftppush(orig, *args, **opts): opts["upload"] = path staticsite(ui, repo, target, **opts) return 0 - + # really wrap the command +# adjust to 3.8 API change +ftppush.norepo = False siteopts = [('', 'sitename', "", 'staticsite: the title of the site. Default: folder or last segment of the repo-path.'), ('', 'screenstyle', "", 'use a custom stylesheet for display on screen'), ('', 'printstyle', "", 'use a custom stylesheet for printing')]