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

Re: Question about git-svn import

From
JSJörg Sommer <joerg@alea.gnuu.de>
Date
Dec 20, 2007, 16:52 UTC
Message-ID
<20071220165227.GB22683@alea.gnuu.de>
In-Reply-To
<476A98BB.8000900@obry.net>
Pascal Obry schrieb am Thu 20. Dec, 17:30 (+0100):
Show 14 quoted lines
> # Rewrite post/trunk on top of pre/trunk into merged-master
> $ git checkout post/trunk
> $ git checkout -b merged-master
> $ git-filter-branch --tag-name-filter cat --parent-filter "sed -e
> 's/^$/-p $(git rev-parse pre/trunk)/'" merged-master
> 
> The problem is that at this point I cannot "git svn rebase". Looks like
> the filter-branch command did break the link between the Subversion
> repository and the git svn one:
> 
> $ git svn rebase
> Unable to determine upstream SVN information from working tree history
> 
> Is there a way around that ?

According to http://duncan.mac-vicar.com/blog/archives/282 it should help to do something like:

git update-ref refs/remotes/git-svn master find -name .rev_db* | xargs rm

I didn't had this problem, because I did a one‐time import.
Bye, Jörg.
-- 
Die zehn Gebote Gottes enthalten 172 Wörter, die amerikanische
Unabhängigkeitserklärung 300 Wörter, die Verordnung der europäischen
Gemeinschaft über den Import von Karamelbonbons exakt 25911 Wörter.
Previous: Pascal ObryNext: Pascal Obry
Message 7 of 8 in “Question about git-svn import”
  1. Pascal ObryDec 17, 2007
  2. Steven WalterDec 18, 2007
  3. Pascal ObryDec 18, 2007
  4. Jörg SommerDec 18, 2007
  5. Pascal ObryDec 19, 2007
  6. Pascal ObryDec 20, 2007
  7. Jörg SommerDec 20, 2007
  8. Pascal ObryDec 21, 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.