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

Re: git-svn set-tree bug

From
JTJoakim Tjernlund <joakim.tjernlund@transmode.se>
Date
Jun 10, 2007, 17:21 UTC
Message-ID
<1181496086.30670.115.camel@gentoo-jocke.transmode.se>
In-Reply-To
<20070610014734.GA542@muzzle>
On Sat, 2007-06-09 at 18:47 -0700, Eric Wong wrote:
Show 9 quoted lines
> Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:
> > trying to do git-svn set-tree remotes/trunk..svn
> > in my new git-svn repo I get:
> > config --get svn-remote.svn.fetch :refs/remotes/git-svn$: command returned error: 1
> 
> You need to specify "-i trunk" in the command-line
> 
> git-svn set-tree -i trunk remotes/trunk..svn
> 
Thanks

I have found a bug or two. Run this script and see what happens ant the end. rm -rf mygitsvn rm -rf mysvnrepo rm -rf mysvnwork mkdir mysvnrepo cd mysvnrepo svnadmin create . cd .. svn checkout file:///$PWD/mysvnrepo mysvnwork mkdir -p mysvnwork/trunk cd mysvnwork/ cat << EOF > trunk/README # # (C) Copyright 2000 - 2005 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # # See file CREDITS for list of people who contributed to this # project. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA #

EOF

svn add trunk svn ci -m "first commit" trunk cd .. git-svn clone file:///$PWD/mysvnrepo -t tags -T trunk -b branches mygitsvn cd mygitsvn

git checkout --track -b svn remotes/trunk git checkout -b merge echo new file > new_file git add new_file git commit -a -m "New file"

echo hello >> README git commit -a -m "hello"

echo add some stuff >> new_file git commit -a -m "add some stuff"

git checkout svn mv -f README tmp echo friend > README cat tmp >> README git commit -a -m "friend" git pull . merge git svn dcommit # this fails git svn rebase # this fails too, mismerges the last commit and remove the merge commit

Previous: Eric WongNext: Joakim Tjernlund
Message 3 of 27 in “git-svn set-tree bug”
  1. Joakim TjernlundJun 8, 2007
  2. Eric WongJun 10, 2007
  3. Joakim TjernlundJun 10, 2007
  4. Joakim TjernlundJun 10, 2007
  5. Eric WongJun 10, 2007
  6. Joakim TjernlundJun 10, 2007
  7. Steven GrimmJun 10, 2007
  8. Joakim TjernlundJun 10, 2007
  9. Eric WongJun 11, 2007
  10. Junio C HamanoJun 11, 2007
  11. Eric WongJun 12, 2007
  12. Junio C HamanoJun 12, 2007
  13. Eric WongJun 12, 2007
  14. Joakim TjernlundJun 12, 2007
  15. Steven GrimmJun 12, 2007
  16. git-svn: allow dcommit to retain local merge informationEric Wong, Jun 13, 2007
  17. Joakim TjernlundJun 13, 2007
  18. Joakim TjernlundJun 13, 2007
  19. Eric WongJun 20, 2007
  20. Eric WongJun 20, 2007
  21. Joakim TjernlundJun 21, 2007
  22. Joakim TjernlundJul 1, 2007
  23. Steven GrimmJun 14, 2007
  24. Joakim TjernlundJun 22, 2007
  25. Lars HjemliJun 12, 2007
  26. Steven GrimmJun 11, 2007
  27. Joakim TjernlundJun 11, 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.