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

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

From
Avery Pennarun <apenwarr@gmail.com>
Date
Jul 29, 2008, 16:08 UTC
Message-ID
<32541b130807290908l13e753d8t1357db452a04f491@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0807291502450.4631@eeepc-johanness>
On 7/29/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 11 quoted lines
>  On Tue, 29 Jul 2008, Jakub Narebski wrote:
>  > If I understand correctly with version 1.5 svn:externals can be
>  > specified using "peg revisions", so they could refer to some specific
>  > revision of 'external', like git submodules.
>
> ... which only means that if they had done that from the beginning, it
>  the git-svn enhancement would be easy.
>
>  But as they did not have it from the beginning, anybody tackling git-svn
>  and svn:externals will have to come up with sensible semantics for the
>  hard case.

One option would be to simply attach the submodule to the "latest commit of the svn:external at the time the supermodule svn commit was made". Basically, enforce git-submodule's precise revision feature retroactively onto svn:externals.

I think this would be perfectly fine in my own projects, for example: it's what I wanted in the first place, but svn didn't have this feature, so I faked it by branching/tagging the external repo whenever I wanted to link to a particular revision.

Have fun,
Avery
Previous: Johannes SchindelinNext: Luciano Rocha
Message 16 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.