D 2011-03-12T17:12:22.623 J comment If\syou\smove\sa\sdirectory,\sfossil\smoves\sthe\sfiles\sto\sthe\swrong\sdirectory\swhen\syou\sthe\s..\sdirectory.\sObserve:\r\n\r\n9:02\ssean@somehost-98\s%\scd\s/tmp/\r\n9:02\ssean@somehost-98\s%\smkdir\sfst\r\n9:02\ssean@somehost-98\s%\scd\sfst/\r\n9:02\ssean@somehost-98\s%\sfs\sopen\s~/src/.fossils/fossil-test-repository\s\r\ntest.sh\r\nproject-name:\s\r\nrepository:\s\s\s/Users/sean/src/.fossils/fossil-test-repository\r\nlocal-root:\s\s\s/private/tmp/fst/\r\nproject-code:\s70164ac6b1269749f782f3dfce03f9cae7fc0c64\r\nserver-code:\s\s4d7de95913a31ac17b29e29e96794b42d2575025\r\ncheckout:\s\s\s\s\s25317d0b17378032e0120a58e3bb2d8c0b9fd99d\s2011-02-08\s22:17:00\sUTC\r\nparent:\s\s\s\s\s\s\sef432a9584e7771b7ac82ba058ecff84f744deb1\s2011-02-08\s16:31:20\sUTC\r\ntags:\s\s\s\s\s\s\s\s\strunk\r\ncomment:\s\s\s\s\s\sUpdating\stest\s(user:\ssean)\r\n9:02\ssean@somehost-98\s%\sll\r\ntotal\s24\r\n-rw-r--r--\s\s1\ssean\s\swheel\s\s7168\sMar\s12\s09:02\s_FOSSIL_\r\n-rwxr-xr-x\s\s1\ssean\s\swheel\s\s\s\s29\sMar\s12\s09:02\stest.sh\r\n9:02\ssean@somehost-98\s%\smkdir\s-p\sfoo/bar/baz\r\n9:02\ssean@somehost-98\s%\scd\sfoo/bar/baz/\r\n9:02\ssean@somehost-98\s%\secho\stest1\s>\sfile1.txt\r\n9:02\ssean@somehost-98\s%\secho\stest2\s>\sfile2.txt\r\n9:03\ssean@somehost-98\s%\sfs\saddrem\r\nADDED\s\sfoo/bar/baz/file1.txt\r\nADDED\s\sfoo/bar/baz/file2.txt\r\nadded\s2\sfiles,\sdeleted\s0\sfiles\r\n9:03\ssean@somehost-98\s%\sfs\sci\s-m\s"Fossil\sdir\smove\sbug"\r\nNew_Version:\s72ede87aa33fb39c8fac6c72adb1c5dc69260597\r\n9:03\ssean@somehost-98\s%\sfs\sstat\r\nrepository:\s\s\s/Users/sean/src/.fossils/fossil-test-repository\r\nlocal-root:\s\s\s/private/tmp/fst/\r\nserver-code:\s\s4d7de95913a31ac17b29e29e96794b42d2575025\r\ncheckout:\s\s\s\s\s72ede87aa33fb39c8fac6c72adb1c5dc69260597\s2011-03-12\s17:03:15\sUTC\r\nparent:\s\s\s\s\s\s\s25317d0b17378032e0120a58e3bb2d8c0b9fd99d\s2011-02-08\s22:17:00\sUTC\r\ntags:\s\s\s\s\s\s\s\s\strunk\r\ncomment:\s\s\s\s\s\sFossil\sdir\smove\sbug\s(user:\ssean)\r\n9:03\ssean@somehost-98\s%\scd\s..\r\n9:03\ssean@somehost-98\s%\smkdir\s../bur\r\n9:03\ssean@somehost-98\s%\spwd\r\n/tmp/fst/foo/bar\r\n9:03\ssean@somehost-98\s%\sfs\smv\sbaz\s../bur/\r\nRENAME\sfoo/bar/baz/file1.txt\sfoo/bur/file1.txt\r\nRENAME\sfoo/bar/baz/file2.txt\sfoo/bur/file2.txt\r\n9:03\ssean@somehost-98\s%\smv\sbaz\s../bur/\r\n9:04\ssean@somehost-98\s%\sfs\sstat\r\nrepository:\s\s\s/Users/sean/src/.fossils/fossil-test-repository\r\nlocal-root:\s\s\s/private/tmp/fst/\r\nserver-code:\s\s4d7de95913a31ac17b29e29e96794b42d2575025\r\ncheckout:\s\s\s\s\s72ede87aa33fb39c8fac6c72adb1c5dc69260597\s2011-03-12\s17:03:15\sUTC\r\nparent:\s\s\s\s\s\s\s25317d0b17378032e0120a58e3bb2d8c0b9fd99d\s2011-02-08\s22:17:00\sUTC\r\ntags:\s\s\s\s\s\s\s\s\strunk\r\ncomment:\s\s\s\s\s\sFossil\sdir\smove\sbug\s(user:\ssean)\r\nMISSING\s\s\s\sfoo/bur/file1.txt\r\nMISSING\s\s\s\sfoo/bur/file2.txt\r\n9:04\ssean@somehost-98\s%\scd\s../bur/\r\n9:04\ssean@somehost-98\s%\sll\r\ntotal\s0\r\ndrwxr-xr-x\s\s4\ssean\s\swheel\s\s136\sMar\s12\s09:03\sbaz\r\n9:04\ssean@somehost-98\s%\sll\sbaz/\r\ntotal\s16\r\n-rw-r--r--\s\s1\ssean\s\swheel\s\s6\sMar\s12\s09:02\sfile1.txt\r\n-rw-r--r--\s\s1\ssean\s\swheel\s\s6\sMar\s12\s09:03\sfile2.txt\r\n9:04\ssean@somehost-98\s%\sfs\saddremove\r\nADDED\s\sfoo/bur/baz/file1.txt\r\nADDED\s\sfoo/bur/baz/file2.txt\r\nDELETED\s\sfoo/bur/file1.txt\r\nDELETED\s\sfoo/bur/file2.txt\r\nadded\s2\sfiles,\sdeleted\s2\sfiles\r\n9:04\ssean@somehost-98\s%\sfs\sci\s-m\s"files\sended\sup\sin\sthe\swrong\sdir"\r\nNew_Version:\sb006a48a67d94f6acedde8fc26bc44d5ab793b79\r\n9:04\ssean@somehost-98\s%\sfs\sstat\r\nrepository:\s\s\s/Users/sean/src/.fossils/fossil-test-repository\r\nlocal-root:\s\s\s/private/tmp/fst/\r\nserver-code:\s\s4d7de95913a31ac17b29e29e96794b42d2575025\r\ncheckout:\s\s\s\s\sb006a48a67d94f6acedde8fc26bc44d5ab793b79\s2011-03-12\s17:04:53\sUTC\r\nparent:\s\s\s\s\s\s\s72ede87aa33fb39c8fac6c72adb1c5dc69260597\s2011-03-12\s17:03:15\sUTC\r\ntags:\s\s\s\s\s\s\s\s\strunk\r\ncomment:\s\s\s\s\s\sfiles\sended\sup\sin\sthe\swrong\sdir\s(user:\ssean)\r\n9:04\ssean@somehost-98\s%\sfs\sextra\r\n9:04\ssean@somehost-98\s%\sfs\sls\r\nfoo/bur/baz/file1.txt\r\nfoo/bur/baz/file2.txt\r\ntest.sh\r\n\r\nPretty\sminor,\sbut\sunexpected\swith\slarge\snumbers\sof\sfiles.\sI'd\sexpect\s`fs\smv\sbaz`\sto\smove\sthe\sdirectory\sobject\sitself\sunder\sbur.\sSeems\slike\san\soff-by-one\serror\sin\sterms\sof\spath\sresolution\sbut\sI\shaven't\slooked\sat\sthe\scode\syet.\sI\sremember\sseeing\sthis\sin\spractice\swith\s../../../\sas\smy\spath\sand\sI\sthink\sthe\sfiles\sended\sup\s../../../\sand\snot\s../../../some/sub/dir/\s(don't\squote\sme\son\sthat,\sit\swas\skinda\slate\slast\snight\swhen\sI\ssaw\sthis\sand\snoted\sthe\sbehavior).\sI\sthink\sif\syou\sresolved\sthe\ssource\sand\sdestination\sdirectories\sto\sabsolute\spaths\s(or\sabsolute\srelative\sto\sthe\sfossil\scheckout)\sthat\sthis\sbug\swould\sbe\sfixed. J foundin c92ec16f81 J private_contact 84f59114b7eee7088fd7e2932599c69c9ad0761b J severity Important J status Open J title Rename\sdirectory\smoves\sfiles\sto\sthe\swrong\sdirector J type Code_Defect K 281f18eef310f4ac211a180ff2d93e6a21ba50e0 U anonymous Z 3f341cbaa57bc40c9ab0da560645970e