Skip to content

Commit

Permalink
remote-hg: trivial cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed May 15, 2013
1 parent b387c77 commit eb7976e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 0 additions & 2 deletions contrib/remote-helpers/test-hg-hg-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'
Expand Down

0 comments on commit eb7976e

Please sign in to comment.