mirror of
https://github.com/frej/fast-export.git
synced 2025-11-02 01:05:48 +01:00
hg-fast-export: Make default branch customizable
Add -M, --default-branch <branch_name> to allow user to set the default branch where to pull into Signed-off-by: Fabrizio Chiarello <ponch@autistici.org>
This commit is contained in:
committed by
Rocco Rutte
parent
02bc08886f
commit
1ab60e492b
@@ -15,6 +15,10 @@ user_re=re.compile('([^<]+) (<[^>]+>)$')
|
||||
# silly regex to clean out user names
|
||||
user_clean_re=re.compile('^["]([^"]+)["]$')
|
||||
|
||||
def set_default_branch(name):
|
||||
global cfg_master
|
||||
cfg_master = name
|
||||
|
||||
def setup_repo(url):
|
||||
myui=ui.ui(interactive=False)
|
||||
return myui,hg.repository(myui,url)
|
||||
|
||||
Reference in New Issue
Block a user