From: Junio C Hamano <gitster@pobox.com>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 4/5] Draft of API for git-vcs-*, transport.c code to use it.
Date: Wed, 25 Mar 2009 11:03:19 -0700 [thread overview]
Message-ID: <7vbprp5vko.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: alpine.LNX.1.00.0903251050430.19665@iabervon.org
Daniel Barkalow <barkalow@iabervon.org> writes:
> On Wed, 25 Mar 2009, Junio C Hamano wrote:
>
>> This seems to follow the model of git-svn in that we treat our history as
>> throw-away, export the history and give the authority to the other system
>> by discarding and replacing our history with whatever the other end gives
>> back to us by re-importing. Because git is more flexible than anything
>> else, we could afford to do so, but I wonder if it is the right model and
>> mentality.
> ...
> But, as a general principle, the reason a git developer would push to a
> non-git remote repository is because the remote repository is
> authoritative. I don't think it makes sense to have an environment
> where the authoritative history is in git, but people are sharing it
> through a bzr server (even if the bzr server can accurately represent
> the git history).
Suppose a project used to use subversion, but it migrated to git (not an
unheard-of scenario these days, I hope). The git repository now is the
authoritative one, all the development happens on this side.
But in order to help:
- people who have established their workflow to follow the project
(e.g. not necessarily contributing anything back, but just doing
regular "svn update");
- people who have leftover local changes from the subversion days; and
- other project infrastracture (e.g. trac) that the project hasn't
managed to interface to the new git repository yet;
the project decides to keep feeding recent updates to the subversion
repository that used to be authoritative, even though it is now declared
read-only (i.e. the only update comes from the git end).
My understanding is that the above scenario would not work if git-vcs-svn
rewrites commits when git exports to svn, and existing git-svn two-way
interface using its "dcommit" may have exactly the same issue.
The reason I brought this up was to involve people who have already faced
this issue with git-svn in the discussion to see if we can avoid it by
doing somethink similar to clever tricks they are using in their git-svn
workflow, if there are some. Perhaps your paragraph below may be one of
those clever tricks, but there may be others.
> I think it might be possible to do something where the synchronization
> point has a list of authoritative commit-swaps, where it can tell the
> multiple developers: "commit Y is really the same thing as commit X; they
> have the same tree, and their parents Y1..Yn are the same as X1..Xn
> (either based on the same criterion applied recursively, or having
> identical hashes)". This list of commit-swaps allows the developers to be
> comfortable with trivial rebases (in a commit Z with X as a parent, make a
> commit Z' with Y replacing X and no other changes, and replace Z with Z'
> in refs and other commits). Of course, this depends on being able to get
> the foreign system to agree on both complete content and history topology,
> but otherwise we kind of have to throw away our history, because the
> public history simply can't be like what we've made locally.
next prev parent reply other threads:[~2009-03-25 18:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 3:04 [PATCH 4/5] Draft of API for git-vcs-*, transport.c code to use it Daniel Barkalow
2009-03-25 7:11 ` Junio C Hamano
2009-03-25 16:20 ` Daniel Barkalow
2009-03-25 17:42 ` Junio C Hamano
2009-03-25 18:03 ` Junio C Hamano [this message]
2009-03-25 19:28 ` Daniel Barkalow
2009-03-25 19:40 ` Junio C Hamano
2009-03-25 20:38 ` Daniel Barkalow
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=7vbprp5vko.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=barkalow@iabervon.org \
--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).