From: Rocco Rutte Date: Tue, 3 Jun 2008 11:53:08 +0000 (+0200) Subject: Revert "hg2git: Replaces space with "_" in branches name" X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=205c76749a2aba3d14d7cd35ac3d484b88eccc8e;p=python%2Ffast-export.git Revert "hg2git: Replaces space with "_" in branches name" The get_branch() function's purpose is to detect whether a mercurial branch name actually should be considered the default branch. Sanitizing branch and tag names for git is done in sanitize_name(). Noted by Jonathan Nieder. This reverts commit cdfdae36c8a73fb257eceff33b03d2f320bafc6b. --- diff --git a/hg2git.py b/hg2git.py index 6916c53..717ab5c 100755 --- a/hg2git.py +++ b/hg2git.py @@ -49,7 +49,7 @@ def get_branch(name): # other CVS imports may need it, too if name=='HEAD' or name=='default' or name=='': name=cfg_master - return name.replace(' ', '_') + return name def get_changeset(ui,repo,revision,authors={}): node=repo.lookup(revision)