mirror of
https://github.com/frej/fast-export.git
synced 2025-11-02 09:15:48 +01:00
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:
committed by
Rocco Rutte
parent
bc98d2c088
commit
cdfdae36c8
@@ -48,7 +48,7 @@ def get_branch(name):
|
|||||||
# HEAD may be from CVS imports into hg
|
# HEAD may be from CVS imports into hg
|
||||||
if name=='HEAD' or name=='default' or name=='':
|
if name=='HEAD' or name=='default' or name=='':
|
||||||
name=cfg_master
|
name=cfg_master
|
||||||
return name
|
return name.replace(' ', '_')
|
||||||
|
|
||||||
def get_changeset(ui,repo,revision,authors={}):
|
def get_changeset(ui,repo,revision,authors={}):
|
||||||
node=repo.lookup(revision)
|
node=repo.lookup(revision)
|
||||||
|
|||||||
Reference in New Issue
Block a user