[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Git mirror - bidrectional
From: |
Stephen J. Turnbull |
Subject: |
Re: Git mirror - bidrectional |
Date: |
Thu, 14 Jan 2010 02:14:54 +0900 |
David Reitter writes:
> Looking at the documentation, I see that the "update" hook is
> designed to do just that. When a remote repository does a push,
> the new revisions are sent to the repository, but before the ref
> (i.e. branch pointer) is updated, this hook is invoked. It can
> prevent the update to the ref.
Ah, this is better than what I just suggested. The doc for
receive-pack isn't as clear as that for hooks.
The main thing that worries me in any such process is that bzr can
take a relatively long time to do a push.
> What happens when the changes that originated on the git side are
> re-imported to the git repository? Would we get double revisions?
I think not. This is the point of the fastimport format. Although
it's possible that some metadata present in git objects is not
supplied by bzr. In that case you would.
> Also, would importing sidestep the new revisions on the git side
> because the "marks" file points to an earlier previous revision?
I don't understand precisely what you mean by "importing", "sidestep",
or "new revisions on the git side".
Re: Git mirror - bidrectional, Stephen J. Turnbull, 2010/01/13
Re: Git mirror - bidrectional, Dan Nicolaescu, 2010/01/13