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>
Felipe Contreras committed
May 13, 2013 at 23:36 UTC
eb7976e7dddf70f0f4a7d05e3d86a33bf163abf2
2 files changed
+1
-3
contrib/remote-helpers/git-remote-hg
+1
-1
@@ -538,7 +538,7 @@ def list_head(repo, cur):
538
g_head = (head, node)
539
540
def do_list(parser):
541
- global branches, bmarks, mode, track_branches
541
+ global branches, bmarks, track_branches
542
543
repo = parser.repo
544
for bmark, node in bookmarks.listbookmarks(repo).iteritems():
contrib/remote-helpers/test-hg-hg-git.sh
-2
@@ -455,8 +455,6 @@ test_expect_success 'hg author' '
455
git_log gitrepo-$x > git-log-$x
456
done &&
457
458
- test_cmp git-log-hg git-log-git &&
459
-
458
test_cmp hg-log-hg hg-log-git &&
459
test_cmp git-log-hg git-log-git
460
'