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

Re: git-svn: pulling from local mirror but committing via svn+ssh

From
Sam Vilain <sam@vilain.net>
Date
Dec 22, 2007, 09:16 UTC
Message-ID
<476CD5E1.9020204@vilain.net>
In-Reply-To
<20071222043528.GB18812@soma>
Eric Wong wrote:
Show 6 quoted lines
>> i have local (fast) mirrors of the svn trees i use, so i normally keep
>> everything pointing at those.  when i need to commit, i use `svn
>> switch --relocate ...` to flip to the svn+ssh master, and then flop
>> back to the local mirror.  it actually works out nicely.
> Can useSvmProps handle this?  I honestly forgot how that stuff
> was supposed to work with SVK/svn-mirror.

It's precisely this use case. If you are syncing with SVN::Mirror, part of SVK, or via svnsync, these tools leave breadcrumbs as svn properties that point to where the repository was copied from. So, in your commit log the message will be the URL of the immediately[*] upstream repository. SVN didn't ever really support clone per se, what did you use to copy the repository?

One thing that isn't documented to my knowledge is that you can use 'git commit --amend' to alter the URL in the 'git-svn-id:' in the commit message of the top commit as a crude form of grafting. If the master repository changes URL or UUID that's probably what you'd have to do. But in your case, you probably want to figure out which switches you're missing.

Sam.
* - Usually these tools don't allow for more than one level of indirection
Show 7 quoted lines
> 
> 
> Mike:
> 
> On the other hand, there's little point in keeping local mirrors around
> when using git-svn since git already does that for you :)
> 
Previous: Eric WongNext: Mike Frysinger
Message 3 of 4 in “git-svn: pulling from local mirror but committing via svn+ssh”
  1. Mike FrysingerDec 20, 2007
  2. Eric WongDec 22, 2007
  3. Sam VilainDec 22, 2007
  4. Mike FrysingerDec 22, 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.