From: Andrey Borzenkov <arvidjaar@gmail.com>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Cannot push anything via export transport helper after push fails.
Date: Sat, 11 May 2013 22:48:37 +0400 [thread overview]
Message-ID: <20130511224837.39a1c551@opensuse.site> (raw)
In-Reply-To: <CAMP44s1YhQR0o-0CLc2PG-EJTZdN4tha-4BVEUy-K_Av81D=GQ@mail.gmail.com>
В Sat, 11 May 2013 08:57:14 -0500
Felipe Contreras <felipe.contreras@gmail.com> пишет:
> >
> > The problem seems to be that git fast-export updates marks
> > unconditionally, whether export actually applied or not. So next time
> > it assumes everything is already exported and does nothing.
> >
> > Is it expected behavior?
>
> Indeed, this is the way it currently works, and it's not easy to fix.
> We would need some way to make fast-export wait until we know the exit
> status of the remote helper, and then tell it when it failed, so the
> marks are not updated.
>
One possibility would be to omit *export-marks and manage GIT marks in
remote helper as well. Helper would then update synchronously both GIT
and BZR marks if no errors were detected. Or even better, it could
update just those commits that had been successful.
> However, the way remote-bzr/hg work is that the commits are still
> there anyway. So if you merge the next time you push those commits are
> already converted, so it's not a problem if fast-export is not
> exporting them again.
>
As I understand bzr commit ID is stable. What happens if we try to
commit the same ID second time?
> So even though it's not ideal, it should work.
>
I'm more concerned about transport errors. Any network glitch during
push renders you repository unusable (at least, without much efforts).
> The problem is when the remote-helper crashes and the marks of
> fast-export and the remote-helper are out of sync, and then the user
> is really screwed.
>
This case would benefit from moving processing of GIT marks into remote
helper as well.
next prev parent reply other threads:[~2013-05-11 18:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-11 12:29 Cannot push anything via export transport helper after push fails Andrey Borzenkov
2013-05-11 12:36 ` John Keeping
2013-05-11 13:44 ` Andrey Borzenkov
2013-05-11 13:57 ` Felipe Contreras
2013-05-11 18:48 ` Andrey Borzenkov [this message]
2013-05-11 21:17 ` Felipe Contreras
2013-05-16 17:38 ` Andrey Borzenkov
2014-04-12 21:24 ` Felipe Contreras
2014-04-12 21:22 ` Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130511224837.39a1c551@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).