summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Zimmerle <felipe.zimmerle@indt.org.br>2008-05-30 13:41:56 +0200
committerRocco Rutte <pdmef@gmx.net>2008-05-30 13:41:56 +0200
commitcdfdae36c8a73fb257eceff33b03d2f320bafc6b (patch)
treec17ca42e28d9be0e904012e4b9b56443da85705f
parentbc98d2c088b6e854eb59485d1109f85c1076a961 (diff)
downloadhg-fast-export-cdfdae36c8a73fb257eceff33b03d2f320bafc6b.tar.gz
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>
-rwxr-xr-xhg2git.py2
1 files changed, 1 insertions, 1 deletions
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)