git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 4/5] Draft of API for git-vcs-*, transport.c code to use it.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 25, 2009, 19:40 UTC
Message-ID
<7vskl1xuez.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LNX.1.00.0903251446180.19665@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
Show 27 quoted lines
> On Wed, 25 Mar 2009, Junio C Hamano wrote:
>
>> 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).
>
> Actually, this is easy: just configure the git repo to not fetch anything 
> from the no-longer-authoritative subversion repository. git-vcs-svn would 
> waste a bunch of time reimporting what it exported, but it wouldn't 
> actually do anything with it (since it doesn't even have tracking refs to 
> update). It could, of course, be optimized to avoid reimporting if it 
> doesn't need to.

I am afraid that won't fly; my comment that started this subthread was not about your "import" but was about your "export" part. It is about sending the git branch to the other end, which is allowed to rewrite what we send and force us to modify our history.

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 7 of 8 in “Draft of API for git-vcs-*, transport.c code to use it.”
  1. 4/5 Draft of API for git-vcs-*, transport.c code to use it.Daniel Barkalow, Mar 25, 2009
  2. Junio C HamanoMar 25, 2009
  3. Daniel BarkalowMar 25, 2009
  4. Junio C HamanoMar 25, 2009
  5. Junio C HamanoMar 25, 2009
  6. Daniel BarkalowMar 25, 2009
  7. Junio C HamanoMar 25, 2009
  8. Daniel BarkalowMar 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.