Why doesn't p4 sync -f folder revive a deleted folder?
(foo is source controled)
$ rm -rf foo
$ p4 sync -f foo
$ ls foo
ls: cannot access开发者_StackOverflow中文版 foo: No such file or directory
$ p4 sync -f foo/...
$ ls foo
bar.txt
Perforce doesn't know about directories, that's why it cannot 'revive' them. The second sync succeeds, because you are not syncing the directory, but the files in this directory.
The directory foo
wasn't added with p4 initially. It was probably added by p4 add foo/bar.txt
精彩评论