{"thread":{"id":"23655","subject":"Import of svn rep has path issues","startedAt":"2010-05-01T13:45:00Z","lastAt":"2010-05-04T09:01:57Z","messageCount":3,"participants":["Paulo J. Matos","Ulrich Spörlein"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140688","messageId":"8439yblorn.fsf@gmail.com","threadId":"23655","inReplyTo":null,"subject":"Import of svn rep has path issues","fromName":"Paulo J. Matos","fromEmail":"pocmatos@gmail.com","sentAt":"2010-05-01T13:45:00Z","receivedAt":"2010-05-01T13:45:00Z","isPatch":false,"sender":{"key":"pocmatos@gmail.com","avatar":"https://gravatar.com/avatar/18a65959cb633850917ac745fd4af17eed7b1f4150d79f9d0f0990dbdca85272?d=mp&s=160"},"body":"Hi all,\n\nI just tried to import a svn project into git using git-svnimport.\nI followed:\nhttp://weblog.redlinesoftware.com/2008/2/24/converting-subversion-repositories-to-git\n\nThe line was:\ngit-svnimport -C projname -r -v -A authors https://your-repo-host.com/projname\n\nInterestingly some revisions resulted in a lot of errors with:\n91: Unrecognized path: /main.cc\n\nThis seems to occur in the first revisions where I hadn't adopted a tree\nformat of /branches, /tags, /trunk. \nOn the other hand, git-svnimport returned 0 to the environment, so I\nwould assume that those 'Unrecognized path' issues are just warnings and\neverything went fine. I would like to have some confirmation of this if\npossible and if these files were not imported into my new git rep, how\ncan I solve these issues?\n\nThanks,\n\n-- \nPMatos\n"},{"id":"140735","messageId":"20100502081510.GF92627@acme.spoerlein.net","threadId":"23655","inReplyTo":"8439yblorn.fsf@gmail.com","subject":"Re: Import of svn rep has path issues","fromName":"Ulrich Spörlein","fromEmail":"uqs@spoerlein.net","sentAt":"2010-05-02T08:15:10Z","receivedAt":"2010-05-02T08:15:10Z","isPatch":false,"sender":{"key":"uqs@spoerlein.net","avatar":null},"body":"On Sat, 01.05.2010 at 14:45:00 +0100, Paulo J. Matos wrote:\n> Hi all,\n> \n> I just tried to import a svn project into git using git-svnimport.\n> I followed:\n> http://weblog.redlinesoftware.com/2008/2/24/converting-subversion-repositories-to-git\n> \n> The line was:\n> git-svnimport -C projname -r -v -A authors https://your-repo-host.com/projname\n> \n> Interestingly some revisions resulted in a lot of errors with:\n> 91: Unrecognized path: /main.cc\n> \n> This seems to occur in the first revisions where I hadn't adopted a tree\n> format of /branches, /tags, /trunk. \n> On the other hand, git-svnimport returned 0 to the environment, so I\n> would assume that those 'Unrecognized path' issues are just warnings and\n> everything went fine. I would like to have some confirmation of this if\n> possible and if these files were not imported into my new git rep, how\n> can I solve these issues?\n\nWell, just look at your git-repo then and see if the logs indicate this\nfile made it (I doubt it).\n\nPlease have a look at svn2git, which can take rules for what to do with\nspecific paths at specific revisions. This should make it possible to go\nfrom\n\n/ is master in git\n\nto\n\n/trunk is master in git\n\nwith little effort\n\nRegards,\nUli\n"},{"id":"140896","messageId":"847hnk9h16.fsf@gmail.com","threadId":"23655","inReplyTo":"20100502081510.GF92627@acme.spoerlein.net","subject":"Re: Import of svn rep has path issues","fromName":"Paulo J. Matos","fromEmail":"pocmatos@gmail.com","sentAt":"2010-05-04T09:01:57Z","receivedAt":"2010-05-04T09:01:57Z","isPatch":false,"sender":{"key":"pocmatos@gmail.com","avatar":"https://gravatar.com/avatar/18a65959cb633850917ac745fd4af17eed7b1f4150d79f9d0f0990dbdca85272?d=mp&s=160"},"body":"Ulrich Spörlein <uqs@spoerlein.net> writes:\n\n>\n> Well, just look at your git-repo then and see if the logs indicate this\n> file made it (I doubt it).\n>\n\nIndeed it didn't make it which is unfortunate.\n\n> Please have a look at svn2git, which can take rules for what to do with\n> specific paths at specific revisions. This should make it possible to go\n> from\n>\n\nThanks for the svn2git ref. My issue seems to be that my svn rep has\nbeen used for all sorts of stuff: docs, general files, source code and\ntherefore I have actually never followed the branches/, tags/, trunk/\ngit-svnimport requires. Do you know if svn2git allows you to import an\nsvn repository with all revisions as is even if they don't follow normal\npath conventions for software repositories?\n\nCheers,\n\n-- \nPMatos\n"}]}