Fossil

Artifact [9b24ea7503]
Login

Artifact [9b24ea7503]

Artifact 9b24ea7503e37c9f66c3f543dfd624371f189456:

Ticket change [9b24ea7503] - Ticket [4ee4aa5a30733a53|4ee4aa5a30] <i>import does not work with file- or directorynames containing whitespace</i> status still Fixed with 1 other change by drh 2010-12-11 14:53:59.
D 2010-12-11T14:53:59
J comment The\s(awesome!)\sgit\simport\swill\snot\scope\swith\sfile/directory\snames\scontaining\swhitespace:\sfor\sa\sfile\sonly\sthe\spart\sbefore\sthe\sfirst\sspace\swill\sshow.\sFor\sa\sdirectory,\sa\sfile\swith\sa\sname\sof\sthe\sfirst\spart\sof\sthe\sdirectory\sname\sbefore\swhitespace\swill\sbe\screated\sand\sall\sfiles\sbeneath\sthe\sdir\swill\snot\sshow\sup.\r\n\r\nMinimal\stest\scase:\r\n\r\n<verbatim>\r\n#\sinit\sgit\srepo\r\n\r\n$\smkdir\sgitrepo\r\n$\scd\sgitrepo/\r\n$\sgit\sinit\r\nInitialized\sempty\sGit\srepository\sin\s/home/dgruber/tmp/gitrepo/.git/\r\n\r\n#\sadd\sa\sfile\swith\sname\scontaining\swhitespace\r\n\r\n$\secho\s1\s>\s"file\swith\swhitespace.txt"\r\n$\sgit\sadd\sfile\\\swith\\\swhitespace.txt\s\r\n$\sgit\scommit\s-m\s"add\sfile"\r\n[master\s(root-commit)\s1cc529c]\sadd\sfile\r\n\s1\sfiles\schanged,\s1\sinsertions(+),\s0\sdeletions(-)\r\n\screate\smode\s100644\sfile\swith\swhitespace.txt\r\n\r\n#\sadd\sa\sfile\sin\sa\sdir\swith\sdirname\scontaining\swhitespace\r\n\r\n$\smkdir\s"dir\swith\swhitespace"\r\n$\secho\s2\s>\sdir\\\swith\\\swhitespace/test.txt\r\n$\sgit\sadd\sdir\\\swith\\\swhitespace/\r\n$\sgit\scommit\s-m\s"add\sfile\sin\sdir\swith\sspace"\r\n[master\saa8b906]\sadd\sfile\sin\sdir\swith\sspace\r\n\s1\sfiles\schanged,\s1\sinsertions(+),\s0\sdeletions(-)\r\n\screate\smode\s100644\sdir\swith\sspace/test.txt\r\n\r\n#\sexport\sto\sfossil\r\n\r\n$\sls\s-l\r\ntotal\s8\r\ndrwxr-xr-x\s2\sdgruber\sdgruber\s4096\sDec\s10\s19:47\sdir\swith\sspace\r\n-rw-r--r--\s1\sdgruber\sdgruber\s\s\s\s2\sDec\s10\s19:24\sfile\swith\swhitespace.txt\r\n$\sgit\sfast-export\s--all\s|\sfossil\simport\s--git\s../gitrepo.fossil\r\nRebuilding\srepository\smeta-data...\r\n\s\s100.0%\scomplete...\r\nVacuuming...\sok\r\nproject-id:\s7e7e2a90dcdeabeab0d308296aafad2c2affa22e\r\nserver-id:\s\saba6f411ae5a0919194c1702d6463f679c9f35a9\r\nadmin-user:\sdgruber\s(password\sis\s"0b315a")\r\n\r\n#\sopen\sfossil\srepo\r\n\r\n$\scd\s..\r\n$\smkdir\sfossilrepo\r\n$\scd\sfossilrepo/\r\n$\sfossil\sopen\s../gitrepo.fossil\s\r\n$\sls\s-l\r\ntotal\s16\r\n-rw-r--r--\s1\sdgruber\sdgruber\s\s\s\s2\sDec\s10\s19:49\sdir\r\n-rw-r--r--\s1\sdgruber\sdgruber\s\s\s\s2\sDec\s10\s19:49\sfile\r\n-rw-r--r--\s1\sdgruber\sdgruber\s7168\sDec\s10\s19:49\s_FOSSIL_\r\n$\sfossil\stimeline\r\n===\s2010-12-10\s===\r\n19:47:58\s[42ca8b1dbf]\s*CURRENT*\sadd\sfile\sin\sdir\swith\sspace\s(user:\r\n\s\s\s\s\s\s\s\s\sdgruber@ed.ac.uk\stags:\smaster)\r\n19:24:21\s[0f24c7282a]\sadd\sfile\s(user:\sdgruber@ed.ac.uk\stags:\smaster,\strunk)\r\n</verbatim>\r\n\r\nThis\sis\son\sDebian\ssqueeze\si386,\slatest\sfossil\s[20b04536d0c9ab0932e719d2a2475dd22c1354d7]\sbuilt\sform\ssource.\r\n\r\nCheers,\r\nDaniel\r\n\r\n<hr\s/><i>anonymous\sadded\son\s2010-12-10\s20:10:25:</i><br\s/>\r\nSorry,\sI\sforgot:\r\n\r\n<verbatim>\r\n$\sgit\s--version\r\ngit\sversion\s1.7.2.3\r\n</verbatim>\r\n\r\nCheers,\r\nDaniel\r\n\r\n<hr\s/><i>drh\sadded\son\s2010-12-11\s00:31:03:</i><br\s/>\r\nIf\syou\sever\scopy\sor\srename\sa\sgit\spathname\scontains\sa\sspace,\sthen\sthe\s\r\ngit-fast-import\stransfer\sformat\swill\snot\sbe\sable\sto\sdeal\swith\sthat\scase.\r\nThis\sis\sa\slimitation\sin\sthe\sdesign\sof\sgit-fast-import.\r\n\r\nBut\sas\slong\sas\syou\sdo\snot\scopy\sor\srename\sfiles\swith\sspaces\sin\stheir\r\npathnames,\sgit-fast-import\sand\salso\sFossil\sshould\snow\sbe\sable\sto\sdeal\swith\sit,\r\nat\sleast\sas\sof\scheck-in\s[4ee4aa5a30733a5].
K 4ee4aa5a30733a53b7a8f09295778165dc6a1669
U drh
Z 0668eb19429feba3be20922e1979e97a