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>
This commit is contained in:
parent
b387c77b12
commit
eb7976e7dd
@ -538,7 +538,7 @@ def list_head(repo, cur):
|
|||||||
g_head = (head, node)
|
g_head = (head, node)
|
||||||
|
|
||||||
def do_list(parser):
|
def do_list(parser):
|
||||||
global branches, bmarks, mode, track_branches
|
global branches, bmarks, track_branches
|
||||||
|
|
||||||
repo = parser.repo
|
repo = parser.repo
|
||||||
for bmark, node in bookmarks.listbookmarks(repo).iteritems():
|
for bmark, node in bookmarks.listbookmarks(repo).iteritems():
|
||||||
|
@ -455,8 +455,6 @@ test_expect_success 'hg author' '
|
|||||||
git_log gitrepo-$x > git-log-$x
|
git_log gitrepo-$x > git-log-$x
|
||||||
done &&
|
done &&
|
||||||
|
|
||||||
test_cmp git-log-hg git-log-git &&
|
|
||||||
|
|
||||||
test_cmp hg-log-hg hg-log-git &&
|
test_cmp hg-log-hg hg-log-git &&
|
||||||
test_cmp git-log-hg git-log-git
|
test_cmp git-log-hg git-log-git
|
||||||
'
|
'
|
||||||
|
Loading…
Reference in New Issue
Block a user