{"thread":{"id":"21240","subject":"Re: Bad URL passed to RA lay","startedAt":"2009-10-14T14:02:11Z","lastAt":"2009-10-14T14:02:11Z","messageCount":1,"participants":["m.skoric@web.de"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"124972","messageId":"1955196477@web.de","threadId":"21240","inReplyTo":null,"subject":"Re: Bad URL passed to RA lay","fromName":"","fromEmail":"m.skoric@web.de","sentAt":"2009-10-14T14:02:11Z","receivedAt":"2009-10-14T14:02:11Z","isPatch":false,"sender":{"key":"m.skoric@web.de","avatar":null},"body":"> -----Ursprüngliche Nachricht-----\n> Von: \"Eric Wong\" <normalperson@yhbt.net>\n> Gesendet: 14.10.09 09:07:31\n> An: m.skoric@web.de\n> CC: git@vger.kernel.org\n> Betreff: Re: Bad URL passed to RA lay\n\n\n> m.skoric@web.de wrote:\n> > Hi List,\n> > \n> > i have a problem with git-svn clone / fetch. I get following error\n> > while doing one of previous command -> \"Bad URL passed to RA lay\" This\n> > happens because a branch doesn't exists in svn anymore and git wants\n> > to retrieve data from it. Here is the complete error message\n> > \n> > Initializing parent: Abo-Uebernahme (Bug #994)@341\n> > Found possible branch point: \"quoted\"..trunk => \"quoted\"...Abo-Uebernahme (Bug #994), 203\n> > Found branch parent: (Abo-Uebernahme (Bug #994)@341) bb831869748c98bf97d105c5894ae65331c95c08\n> > Bad URL passed to RA layer: Malformed URL for repository at /usr/bin/git-svn line 4311\n> > \n> > git version 1.6.3.3\n> > \n> > Aynone else has this Problem?\n> \n> Hi,\n> \n> Unlikely, not many people use URIs as weird as yours :)\n\nYe, i know ;) This is really old stuff and we already changed them to more sane ones ;)\n\n> The existing test case (t9118) we have was also inspired by you,\n> on the same branch, even.\n> \n> > Can anyone help me?\n> \n> What exactly is the \"quoted\" you refer to?  That's not an actual branch\n> name, is it?\n\nah brainfart.\n\nThis info is essential!\n\nquoted = branches/dirk/Abo-Uebernahme... => https...branches/Abo-Uebernahme...\n\n\n> Can you try it with v1.6.5?  You might need to edit your $GIT_CONFIG,\n> but commit 5268f9edc3c86b07a64fcc2679e5ffe39be28d97 was the last\n> fix for URI-escaping problems:\n\nThis is not a URI Escaping Problem. As i allready mentioned: I think its a svn\nproblem and git can't handle that.\n\nsvn History:\n\nr203 svn copy /trunk/ /branches/dirk/Abo..\nr204 svn mv /branches/dirk/Abo..   /branches/Abo..\nr341 svn mv /branches/Abo.. /branches/0944-Abo..\n\nr203 branch was created from trunk.\nr204 branch was moved from /branches/dirk/ to /branches\nr341 branch was renamed to 0944-Abo\n\nThis is what git does.\n\n>Initializing parent: refs/remote/Abo-Uebernahme (Bug #994)@341\n>Found possible branch point: branches/Abo => branches/dirk/Abo-Uebernahme (Bug #994), 203\n>Found branch parent: (Abo-Uebernahme (Bug #994)@341) bb831869748c98bf97d105c5894ae65331c95c08\n>Bad URL passed to RA layer: Malformed URL for repository at /usr/bin/git-svn line 4311\n\nI think the problem is that git doesn't like this kinda action.\nbranch -> do something with branch -> rename branch.\n\nAfter some debugging i found something in git-svn\n\nsub find_parent_branch\n{\n...\n\t} elseif ($self->ra->trees_match($new_url, $r0, $self->full_url, $rev))\n\t....\n}\n\nthe trees_match sub doesn't do any error handling. if $self->full_url doesn't\nexits anymore this will fail, right? \n\nI don't know if the followong piece of code in find_parent_branch works like\nyou expect it!?\n\n>unless (defined $paths) {\n>\tmy $err_handler = $SVN::Error::handler;\n>        $SVN::Error::handler = \\&Git::SVN::Ra::skip_unknown_revs;\n>        $self->ra->get_log([$self->{path}], $rev, $rev, 0, 1, 1,\n>                                 sub { $paths = $_[0] });\n>        $SVN::Error::handler = $err_handler;\n>}\n>return undef unless defined $paths;\n\nMaybe its just a problem with renaming branches or something!?\nMy Perl knowledge is really limited, so its up to you my friend ;)\n\nMajk\n\n______________________________________________________\nGRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!\nJetzt freischalten unter http://movieflat.web.de\n"}]}