From cdfdae36c8a73fb257eceff33b03d2f320bafc6b Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 30 May 2008 13:41:56 +0200 Subject: [PATCH] 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 Signed-off-by: Rocco Rutte --- hg2git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg2git.py b/hg2git.py index 3015e0b..93e080f 100755 --- a/hg2git.py +++ b/hg2git.py @@ -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) -- 2.11.4.GIT