From: Felipe Contreras Date: Mon, 22 Apr 2013 21:55:12 +0000 (-0500) Subject: remote-hg: properly mark branches up-to-date X-Git-Tag: v1.8.3-rc0~14^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e31e1fea5c827f392babacef1c8783313eb19c9;p=git remote-hg: properly mark branches up-to-date Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index b6589a3df8..a4db5b07bc 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -742,6 +742,10 @@ def do_export(parser): for ref, node in parsed_refs.iteritems(): if ref.startswith('refs/heads/branches'): + branch = ref[len('refs/heads/branches/'):] + if branch in branches and node in branches[branch]: + # up to date + continue print "ok %s" % ref elif ref.startswith('refs/heads/'): bmark = ref[len('refs/heads/'):]