]> git.ipfire.org Git - thirdparty/git.git/commitdiff
remote-hg: trivial cleanups
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 14 May 2013 04:36:24 +0000 (23:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 May 2013 19:30:36 +0000 (12:30 -0700)
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>
contrib/remote-helpers/git-remote-hg
contrib/remote-helpers/test-hg-hg-git.sh

index 96ad30d5126702629841e9bc16abfbf07fbe9546..d33c7bafc3fcbfd66b3b13c3691c5209c3362bec 100755 (executable)
@@ -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():
index 84403415f87d9126ab090e8264a8053a7fbfe47a..0c365737c3c4bbff4623f10407c4572424408988 100755 (executable)
@@ -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
 '