diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-05-13 23:36:24 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-15 12:30:36 -0700 |
commit | eb7976e7dddf70f0f4a7d05e3d86a33bf163abf2 (patch) | |
tree | 65eae2cd4d6ffd71400c97231d88bd034f72f5cd /contrib | |
parent | Sync with v1.8.2.3 (diff) | |
download | tgif-eb7976e7dddf70f0f4a7d05e3d86a33bf163abf2.tar.xz |
remote-hg: trivial cleanups
Drop unused "global", and remove redundant comparison of two files.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/remote-helpers/git-remote-hg | 2 | ||||
-rwxr-xr-x | contrib/remote-helpers/test-hg-hg-git.sh | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 96ad30d512..d33c7bafc3 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -538,7 +538,7 @@ def list_head(repo, cur): g_head = (head, node) def do_list(parser): - global branches, bmarks, mode, track_branches + global branches, bmarks, track_branches repo = parser.repo for bmark, node in bookmarks.listbookmarks(repo).iteritems(): diff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh index 84403415f8..0c365737c3 100755 --- a/contrib/remote-helpers/test-hg-hg-git.sh +++ b/contrib/remote-helpers/test-hg-hg-git.sh @@ -455,8 +455,6 @@ test_expect_success 'hg author' ' git_log gitrepo-$x > git-log-$x done && - test_cmp git-log-hg git-log-git && - test_cmp hg-log-hg hg-log-git && test_cmp git-log-hg git-log-git ' |