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

Question about git svn handling svn external

From
Hillel (Sabba) Markowitz <sabbahillel@gmail.com>
Date
Feb 10, 2011, 16:44 UTC
Message-ID
<AANLkTi=TsWQh95MgFCW6ap05-NheVga4et_6h2w1A0VB@mail.gmail.com>

I use a python script which calls git svn clone based on a text file built from the svn externals of the form

dir1 url1 dir2 url2

to create a git project. Each subdirectory of course will have its own .git and point back to the original svn repository so that I can change a particular subdirectory.

For example, I have dirn from urln/trunk built and I want to change it to urln/branches/mybranch.

Is there a good way of doing this without deleting everything under it?

If I wipe out the dirn directory, I would wipe out the externals that came in with urln and I would have to pick up all the entries that follow. I do not want to pick up the external pointer from svn as I might not actually be using all of those. I want to only bring in the entries from the configuration file. Of course, it would be more useful if someone has already done it.

The project that I am on would like to use python for this, but if someone has already written something, the language would not matter.

--
       Sabba     -          סבא הלל        -     Hillel
Hillel (Sabba) Markowitz | Said the fox to the fish, "Join me ashore"
 SabbaHillel@gmail.com | The fish are the Jews, Torah is our water
http://sabbahillel.blogspot.com
Message 1 of 1 in “Question about git svn handling svn external”
  1. Hillel (Sabba) MarkowitzFeb 10, 2011

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.