{"thread":{"id":"21214","subject":"Filesystem has no item: Working copy path [...] does not exist in repository at /usr/bin/git-svn line 3856","startedAt":"2009-10-12T15:48:46Z","lastAt":"2009-10-12T22:45:42Z","messageCount":4,"participants":["Daniele Segato","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"124712","messageId":"9accb4400910120848n6a1e4036l5e45ce3882deb5aa@mail.gmail.com","threadId":"21214","inReplyTo":null,"subject":"Filesystem has no item: Working copy path [...] does not exist in repository at /usr/bin/git-svn line 3856","fromName":"Daniele Segato","fromEmail":"daniele.bilug@gmail.com","sentAt":"2009-10-12T15:48:46Z","receivedAt":"2009-10-12T15:48:46Z","isPatch":false,"sender":{"key":"daniele.bilug@gmail.com","avatar":null},"body":"Hi,\ni'm trying to clone a public SVN repo (user = guest, password is\nempty/blank/not neeeded)\n\nthis was my steps:\n\n$ git --version\ngit version 1.5.6.5\n$ mkdir plugins\n$ cd plugins\n$ git svn init http://svn.liferay.com/repos/public/plugins -T trunk -b\nbranches # doesn't have tags\n$ git svn fetch\n[...]\n# it takes hours.....\n[...]\nr25355 = ee13a19e656e6f96b1ebb562b10ee7fa688921df (svn/trunk)\nFilesystem has no item: Working copy path 'plugins/branches/trunk'\ndoes not exist in repository at /usr/bin/git-svn line 3856\n\n\nafter that revision it give me that error... and then stops.\nif I issue again the git svn fetch it keep telling me the error and I\ncan't complete the cloning.\n\nI've edited my .git/config between git svn init and git svn fetch\nadding \"svn\" to the target branch and url name\n\n[core]\n\trepositoryformatversion = 0\n\tfilemode = true\n\tbare = false\n\tlogallrefupdates = true\n[svn-remote \"svn\"]\n\turl = http://svn.liferay.com/repos/public\n\tfetch = plugins/trunk:refs/remotes/svn/trunk\n\tbranches = plugins/branches/*:refs/remotes/svn/*\n\nyou can use\ngit svn fetch --revision 25255:HEAD\n\nto make it take less time (hours anyway)...\n\nAny help will be appreciated,\n\nthanks,\nregards,\nDaniele\n"},{"id":"124726","messageId":"20091012182018.GA14143@dcvr.yhbt.net","threadId":"21214","inReplyTo":"9accb4400910120848n6a1e4036l5e45ce3882deb5aa@mail.gmail.com","subject":"Re: Filesystem has no item: Working copy path [...] does not exist in repository at /usr/bin/git-svn line 3856","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-10-12T18:20:18Z","receivedAt":"2009-10-12T18:20:18Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Daniele Segato <daniele.bilug@gmail.com> wrote:\n> Hi,\n> i'm trying to clone a public SVN repo (user = guest, password is\n> empty/blank/not neeeded)\n> \n> this was my steps:\n> \n> $ git --version\n> git version 1.5.6.5\n\nHi Daniele,\n\nFirst I thought this was a problem fixed in\n83c2fcff214fe89649fcd88e095d9961a36b53dd (git v1.6.2 or later),\nbut then I tried running it just to make sure.\n\n> $ mkdir plugins\n> $ cd plugins\n> $ git svn init http://svn.liferay.com/repos/public/plugins -T trunk -b\n> branches # doesn't have tags\n> $ git svn fetch\n> [...]\n> # it takes hours.....\n> [...]\n> r25355 = ee13a19e656e6f96b1ebb562b10ee7fa688921df (svn/trunk)\n> Filesystem has no item: Working copy path 'plugins/branches/trunk'\n> does not exist in repository at /usr/bin/git-svn line 3856\n> \n> \n> after that revision it give me that error... and then stops.\n> if I issue again the git svn fetch it keep telling me the error and I\n> can't complete the cloning.\n\nThis is a namespace conflict, the \"trunk\" ref is conflicting with a\n(what seems to be a miscreated) branch named \"trunk\".  I anticipated\nthis problem originally but figured it was rare/uncommon enough that I\ndidn't want to burden users by prefixing all branches with something:\n\n  ------------------------------------------------------------------------\n  r25364 | michael.hashimoto | 2009-01-21 14:06:53 -0800 (Wed, 21 Jan 2009) | 1 line\n  Changed paths:\n     A /plugins/branches/trunk\n\n  Created directory 'plugins/branches/trunk'.\n  ------------------------------------------------------------------------\n  r25365 | michael.hashimoto | 2009-01-21 14:07:15 -0800 (Wed, 21 Jan 2009) | 1 line\n  Changed paths:\n     D /plugins/branches/trunk\n\n  Removed plugins/branches/trunk\n\nSince it looks pretty obvious that \"trunk\" was miscreated here from the\nrevision history, you can skip these two revisions in your import by\nrecontinuing the clone with \"git svn fetch -r25365:HEAD\"\n\nIf you encounter this problem further in a non-workaroundable way,\nyou can prefix the local branches refs:\n\nReplace:\n  [svn-remote \"svn\"]\n    branches = plugins/branches/*:refs/remotes/svn/*\n\nWith:\n\n  [svn-remote \"svn\"]\n    branches = plugins/branches/*:refs/remotes/svn/branches/*\n\nI didn't do this by default since I figured very few people would create\na branch named \"trunk\" (and those who did, did it accidentally as it\nseems to be the case here).\n\nHope that helps.\n\n-- \nEric Wong\n"},{"id":"124760","messageId":"1255382764.15646.5.camel@localhost","threadId":"21214","inReplyTo":"20091012182018.GA14143@dcvr.yhbt.net","subject":"Re: Filesystem has no item: Working copy path [...] does not exist in repository at /usr/bin/git-svn line 3856","fromName":"Daniele Segato","fromEmail":"daniele.bilug@gmail.com","sentAt":"2009-10-12T21:26:04Z","receivedAt":"2009-10-12T21:26:04Z","isPatch":false,"sender":{"key":"daniele.bilug@gmail.com","avatar":null},"body":"Il giorno lun, 12/10/2009 alle 11.20 -0700, Eric Wong ha scritto:\n> First I thought this was a problem fixed in\n> 83c2fcff214fe89649fcd88e095d9961a36b53dd (git v1.6.2 or later),\n> but then I tried running it just to make sure.\n\nthank you for taking the time\n\n> This is a namespace conflict, the \"trunk\" ref is conflicting with a\n> (what seems to be a miscreated) branch named \"trunk\".  I anticipated\n> this problem originally but figured it was rare/uncommon enough that I\n> didn't want to burden users by prefixing all branches with something:\n> \n>   ------------------------------------------------------------------------\n>   r25364 | michael.hashimoto | 2009-01-21 14:06:53 -0800 (Wed, 21 Jan 2009) | 1 line\n>   Changed paths:\n>      A /plugins/branches/trunk\n> \n>   Created directory 'plugins/branches/trunk'.\n>   ------------------------------------------------------------------------\n>   r25365 | michael.hashimoto | 2009-01-21 14:07:15 -0800 (Wed, 21 Jan 2009) | 1 line\n>   Changed paths:\n>      D /plugins/branches/trunk\n> \n>   Removed plugins/branches/trunk\n> \n> Since it looks pretty obvious that \"trunk\" was miscreated here from the\n> revision history, you can skip these two revisions in your import by\n> recontinuing the clone with \"git svn fetch -r25365:HEAD\"\n\nI thought it could be a problem like this but I asked before re-fetching\nall the repository (just to be sure)..\n\nunfurtunately I already deleted all the .git directory so i'll have to\nstart again...\n\n\n> Replace:\n>   [svn-remote \"svn\"]\n>     branches = plugins/branches/*:refs/remotes/svn/*\n> \n> With:\n> \n>   [svn-remote \"svn\"]\n>     branches = plugins/branches/*:refs/remotes/svn/branches/*\n> \n> I didn't do this by default since I figured very few people would create\n> a branch named \"trunk\" (and those who did, did it accidentally as it\n> seems to be the case here).\n> \n> Hope that helps.\n\nYes it really help...\n\nBut I'll change it like this instead:\n  [svn-remote \"svn\"]\n    url = http://svn.liferay.com/repos/public\n    fetch = plugins/trunk:refs/remotes/svn/master\n    branches = plugins/branches/*:refs/remotes/svn/*\n\nI think it will do as long as they didn't created some branch named\n\"master\" :)\n\n\nIn this case the repo was public, what should I do to debug some git-svn\nissue like that if I encounter a problem with a non-public repo?\nMay be there is some debug flag I could enable? Or I had to\nguess/explore the svn tree?\n\nthank you Eric\n\nregards,\nDaniele\n"},{"id":"124770","messageId":"20091012224542.GB14143@dcvr.yhbt.net","threadId":"21214","inReplyTo":"1255382764.15646.5.camel@localhost","subject":"Re: Filesystem has no item: Working copy path [...] does not exist in repository at /usr/bin/git-svn line 3856","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-10-12T22:45:42Z","receivedAt":"2009-10-12T22:45:42Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Daniele Segato <daniele.bilug@gmail.com> wrote:\n> In this case the repo was public, what should I do to debug some git-svn\n> issue like that if I encounter a problem with a non-public repo?\n> May be there is some debug flag I could enable? Or I had to\n> guess/explore the svn tree?\n\nI rely on the output of \"svn log -v\" extensively.\n\nI'll also use strace, ltrace, tcpdump and/or put print statements\n(combined with Data::Dumper) in various places of git-svn.\nUnfortunately the git-svn code is quite ugly and I still haven't had the\ntime or energy to clean it up myself :<\n\n-- \nEric Wong\n"}]}