From: Felipe Contreras Date: Tue, 14 May 2013 04:36:26 +0000 (-0500) Subject: remote-hg: enable track-branches in hg-git mode X-Git-Tag: v1.8.3-rc3~10^2~5 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=679e87c02bf02b34fe4dba5bd09e17269223c96f;p=git-core%2Fgit.git remote-hg: enable track-branches in hg-git mode The user can turn this off. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 9d6940b92..de3a96ebe 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -909,7 +909,6 @@ def main(args): if get_config('remote-hg.hg-git-compat') == 'true\n': hg_git_compat = True - track_branches = False if get_config('remote-hg.track-branches') == 'false\n': track_branches = False if get_config('remote-hg.force-push') == 'false\n': diff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh index 0c365737c..7f579c843 100755 --- a/contrib/remote-helpers/test-hg-hg-git.sh +++ b/contrib/remote-helpers/test-hg-hg-git.sh @@ -102,6 +102,7 @@ setup () { ) >> "$HOME"/.hgrc && git config --global receive.denycurrentbranch warn git config --global remote-hg.hg-git-compat true + git config --global remote-hg.track-branches false HGEDITOR=/usr/bin/true