mirror of
https://github.com/frej/fast-export.git
synced 2025-11-02 17:25:48 +01:00
Maintain backwards compatibility for ui setup
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
This commit is contained in:
@@ -26,8 +26,11 @@ def set_origin_name(name):
|
|||||||
origin_name = name
|
origin_name = name
|
||||||
|
|
||||||
def setup_repo(url):
|
def setup_repo(url):
|
||||||
myui=ui.ui()
|
try:
|
||||||
myui.setconfig('ui', 'interactive', 'off')
|
myui=ui.ui(interactive=False)
|
||||||
|
except TypeError:
|
||||||
|
myui=ui.ui()
|
||||||
|
myui.setconfig('ui', 'interactive', 'off')
|
||||||
return myui,hg.repository(myui,url)
|
return myui,hg.repository(myui,url)
|
||||||
|
|
||||||
def fixup_user(user,authors):
|
def fixup_user(user,authors):
|
||||||
|
|||||||
Reference in New Issue
Block a user