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

Re: git-svnimport breakage as of git-1.4.4

From
SKSasha Khapyorsky <sashak@voltaire.com>
Date
Dec 11, 2006, 20:49 UTC
Message-ID
<20061211204904.GC1003@sashak.voltaire.com>
In-Reply-To
<1165847230.13854.2.camel@systems03.lan.brontes3d.com>
On 09:27 Mon 11 Dec     , Daniel Drake wrote:
Show 15 quoted lines
> On Fri, 2006-12-08 at 22:32 +0200, Sasha Khapyorsky wrote:
> > > # git-svnimport -v -i -C repo -r https://server repo
> > 
> > Is this 'server' public? Can I rerun this git-svnimport?
> 
> Sorry, it is not.
> 
> > @@ -906,7 +912,7 @@ sub commit_all {
> >  	my ($changed_paths, $revision, $author, $date, $message, $pool) = @_;
> >  	my %p;
> >  	while(my($path,$action) = each %$changed_paths) {
> > -		$p{$path} = [ $action->action,$action->copyfrom_path, $action->copyfrom_rev, $path ];
> > +		$p{$path} = [ $action->action,$svn_dir$action->copyfrom_path, $action->copyfrom_rev, $svn_dir$path ];
> 
> This is not valid perl - I think you wanted $svn_dir . $path
Yes, sorry.
Show 13 quoted lines
> 
> After making that modification it's not fixed though:
> 
> Fetching from 1 to 10742 ...
> Tree ID 4b825dc642cb6eb9a060e54bf8d69288fbee4904
> Committed change 1:/ 2004-12-22 22:53:27)
> Committing initial tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
> Commit ID 2614c05ac4c5f24eb89cea056a7d46c909084d8c
> Writing to refs/heads/origin
> DONE: 1 origin 2614c05ac4c5f24eb89cea056a7d46c909084d8c
> perl: subversion/libsvn_subr/path.c:377: svn_path_basename: Assertion
> `is_canonical (path, len)' failed.
> Aborted

Maybe I'm starting to understand. Your svn url (url which points to svn repository) is https://server/repo and not just https://server, right?

If so, please remove the patch (you don't need it) and rerun:
  git-svnimport -v -i -C repo -r https://server/repo
Previous: Daniel DrakeNext: Daniel Drake
Message 10 of 19 in “git-svnimport breakage as of git-1.4.4”
  1. Daniel DrakeDec 7, 2006
  2. Sasha KhapyorskyDec 8, 2006
  3. Dongsheng SongDec 10, 2006
  4. Sasha KhapyorskyDec 10, 2006
  5. Dongsheng SongDec 11, 2006
  6. Sasha KhapyorskyDec 11, 2006
  7. Dongsheng SongDec 11, 2006
  8. Sasha KhapyorskyDec 14, 2006
  9. Daniel DrakeDec 11, 2006
  10. Sasha KhapyorskyDec 11, 2006
  11. Daniel DrakeDec 11, 2006
  12. Sasha KhapyorskyDec 11, 2006
  13. Daniel DrakeDec 13, 2006
  14. Sasha KhapyorskyDec 14, 2006
  15. Daniel DrakeDec 14, 2006
  16. Sasha KhapyorskyDec 14, 2006
  17. Junio C HamanoDec 14, 2006
  18. Sasha KhapyorskyDec 14, 2006
  19. git-svnimport: clean svn path when accessing SVN repoSasha Khapyorsky, Jan 7, 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.