开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜