Skip to content

Commit eb7976e

Browse files
felipecgitster
authored andcommitted
remote-hg: trivial cleanups
Drop unused "global", and remove redundant comparison of two files. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b387c77 commit eb7976e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def list_head(repo, cur):
538538
g_head = (head, node)
539539

540540
def do_list(parser):
541-
global branches, bmarks, mode, track_branches
541+
global branches, bmarks, track_branches
542542

543543
repo = parser.repo
544544
for bmark, node in bookmarks.listbookmarks(repo).iteritems():

contrib/remote-helpers/test-hg-hg-git.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@ test_expect_success 'hg author' '
455455
git_log gitrepo-$x > git-log-$x
456456
done &&
457457
458-
test_cmp git-log-hg git-log-git &&
459-
460458
test_cmp hg-log-hg hg-log-git &&
461459
test_cmp git-log-hg git-log-git
462460
'

0 commit comments

Comments
 (0)