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

Re: [user] git-svn and svn cp

From
EWEric Wong <normalperson@yhbt.net>
Date
Nov 19, 2007, 16:26 UTC
Message-ID
<20071119162612.GA10122@soma>
In-Reply-To
<47416F68.9070908@ogersoft.at>
gerhard.oettl.ml@ogersoft.at wrote:
Show 23 quoted lines
> I hope this is the correct mailing list. If not please point me in the 
> right direction.
> 
> 
> I played a little with git (1.5.3.4 / debian) and had the following 
> observation:
> Doing a "svn cp" (for example for a tag) results in a large traffic when 
> doing a "git-svn fetch" afterwards.
> 
> To verify I did:
> git-svn clone -s svn://www.ogersoft.at/ogerlit
> git-svn fetch
> svn cp svn://... svn://... (one file ca 3mb)
> svk checkout (a tcpflow output of about 3k - plaintext commands, I think 
> a svn checkout would be the same)
> git-svn fetch (a tcpflow output of 700k - containing a textdelta of 
> nearly 700k)
> 
> 
> So the question remains:
> Does svn-git dont know about lightweight svn copies?
> or can svn-git not handle them correct by now?
> or did I something wrong?

Older versions of the Perl SVN bindings have a broken do_switch() function, so I fall back to the do_update() function which re-downloads the whole tree instead..

SVN 1.4.4+ has this fix which allows do_switch() to be used instead of do_update().

do_switch() will only download the delta between two trees if the parent is present.

If you don't have easy access to 1.4.4+ packages, I have patched 1.4.3 (x86) packages here for Debian Etch (I haven't built 1.4.4 or 1.4.5 yet):

http://git-svn.yhbt.net/svn/
-- 
Eric Wong
Previous: Benoit SigoureNext: gerhard.oettl.ml@ogersoft.at
Message 10 of 11 in “[user] git-svn and svn cp”
  1. gerhard.oettl.ml@ogersoft.atNov 19, 2007
  2. Matthieu MoyNov 19, 2007
  3. David KastrupNov 19, 2007
  4. Matthieu MoyNov 19, 2007
  5. Benoit SigoureNov 19, 2007
  6. gerhard.oettl.ml@ogersoft.atNov 19, 2007
  7. David KastrupNov 19, 2007
  8. Matthieu MoyNov 19, 2007
  9. Benoit SigoureNov 19, 2007
  10. Eric WongNov 19, 2007
  11. gerhard.oettl.ml@ogersoft.atNov 20, 2007

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.