开发者

Why doesn't p4 sync -f folder revive a deleted folder?

开发者 https://www.devze.com 2023-02-22 12:06 出处:网络
(foo is source controled) $ rm -rf foo $ p4 sync -f foo $ ls foo ls: cannot access开发者_StackOverflow中文版 foo: No such file or directory

(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

精彩评论

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

关注公众号