hg2git: Replaces space with "_" in branches name

Since space doesn't conform to GIT branches name standards,
it should be replaced or with another character.

Signed-off-by: Felipe Zimmerle <felipe.zimmerle@indt.org.br>
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
This commit is contained in:
Felipe Zimmerle
2008-05-30 13:41:56 +02:00
committed by Rocco Rutte
parent bc98d2c088
commit cdfdae36c8

View File

@@ -48,7 +48,7 @@ def get_branch(name):
# HEAD may be from CVS imports into hg
if name=='HEAD' or name=='default' or name=='':
name=cfg_master
return name
return name.replace(' ', '_')
def get_changeset(ui,repo,revision,authors={}):
node=repo.lookup(revision)