{"thread":{"id":"26317","subject":"fast-import/export from Plastic SCM questions about renames","startedAt":"2011-01-21T13:41:13Z","lastAt":"2011-01-21T13:41:13Z","messageCount":1,"participants":["psantosl@codicesoftware.com"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"159749","messageId":"4D398CF9.70405@codicesoftware.com","threadId":"26317","inReplyTo":null,"subject":"fast-import/export from Plastic SCM questions about renames","fromName":"psantosl@codicesoftware.com","fromEmail":"psantosl@codicesoftware.com","sentAt":"2011-01-21T13:41:13Z","receivedAt":"2011-01-21T13:41:13Z","isPatch":false,"sender":{"key":"psantosl@codicesoftware.com","avatar":"https://gravatar.com/avatar/ad76e8fe9587bdb03eeb1c91f6b91ecdeb2f5a2953bfc0f52c39b2bf86d12fe3?d=mp&s=160"},"body":"Hi,\n\nI'm currently developing a fast-export (and later a fast-import) to be\nable to export from Plastic SCM to Git and also import from Git to\nPlastic SCM.\n\nPlastic tracks history of directories and hence it easy to handle moves\nbetween directories. But, during the export/import from plastic to git I\nfound the following situation:\n\nR src/samples/sampledata src/samples/samplebase\nR src/samples/samplebase/Test.Workflow.xml\nsrc/samples/samplebase/new/Test.Workflow.xml\n\nIt is a \"move within\" a move and it always fails telling that\nsrc/samples/samplebase/Test.Workflow.xml is not in the branch.\n\nIf I split the \"move\" op into a delete + an add, it works, but reading\nthe documentation I expected it to work.\n\nAlso, after splitting the \"moves\" into add/delete pairs, I've found an\nissue with a simple rename:\n\n- a directory that is renamed from src/Diff to src/diff (here I kept a R\noperation)\n\n- 1000 commits later (after tons of files have been modified inside the\nsrc/diff dir) I get a rename like src/diff/Diff.c src/diff/diff.cs and\nan error saying src/diff/Diff.c is not in the branch.\n\nIt is very possible that my export code is wrong, but I wanted to check\nif it is better to simply get rid of the \"move\" (R) operations in\nfast-export.\n\nThanks,\n\npablo\n\n\nwww.plasticscm.com\n"}]}