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:
Fabrizio Chiarello
2008-09-18 21:10:16 +02:00
committed by Rocco Rutte
parent 02bc08886f
commit 1ab60e492b
3 changed files with 13 additions and 2 deletions

View File

@@ -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)