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

Re: git-svn and svn:externals, was Re: Hackontest ideas?

From
EWEric Wong <normalperson@yhbt.net>
Date
Aug 3, 2008, 22:48 UTC
Message-ID
<20080803224852.GC3006@untitled>
In-Reply-To
<alpine.DEB.1.00.0807291354130.4631@eeepc-johanness>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 8 quoted lines
> Hi,
> 
> On Tue, 29 Jul 2008, Jakub Narebski wrote:
> 
> >  * handling of svn:externals using submodules
> 
> I doubt that this is easy.  Otherwise, Eric would have done it a long time 
> ago.

I started working on externals support a long time ago, but got hung up on corner-cases (with .gitmodules and .gitignore being in the tree) and backward-compatibility issues with commiting back to SVN.

The more I think about it, the more I think the worse-is-better approach I used for "git svn show-ignore" is the way to go (using the unversioned .git/info/exclude). That would mean ignoring submodules as implemented by git and just shotgunning another git-svn-created subdirectory into where the external would've been...

> The main concern I have is to get the semantics right: AFAICT 
> svn:externals has _no notion_ of "what is current".  It just _always_ 
> fetches the HEAD.  Even if you check out an ancient revision in the 
> "superproject".

Based on my limited understanding, peg revisions are only needed in SVN because of the cost of traversing history to DTRT. git-svn should be able to just use the -r<rev> syntax that has always been supported without needing peg revisions. On the other hand, implicit rename/copy detection in git may not pick up drastic changes...

-- 
Eric Wong
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 19 of 21 in “Hackontest ideas?”
  1. Petr BaudisJul 29, 2008
  2. Miklos VajnaJul 29, 2008
  3. Shawn O. PearceJul 29, 2008
  4. Petr BaudisJul 29, 2008
  5. TarmiganJul 29, 2008
  6. Junio C HamanoJul 29, 2008
  7. Petr BaudisJul 29, 2008
  8. Nguyen Thai Ngoc DuyJul 29, 2008
  9. Petr BaudisJul 29, 2008
  10. Nguyen Thai Ngoc DuyJul 29, 2008
  11. Junio C HamanoJul 29, 2008
  12. Jakub NarebskiJul 29, 2008
  13. git-svn and svn:externals, was Re: Hackontest ideas?Johannes Schindelin, Jul 29, 2008
  14. Jakub NarebskiJul 29, 2008
  15. Johannes SchindelinJul 29, 2008
  16. Avery PennarunJul 29, 2008
  17. Luciano RochaJul 29, 2008
  18. Johannes SchindelinJul 29, 2008
  19. Eric WongAug 3, 2008
  20. Johannes SchindelinAug 3, 2008
  21. Eric WongAug 3, 2008

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.