开发者

How can I delete an unretrievable file from a Perforce repository?

In my Perforce repository there's a file that was submitted a while ago and was at one point valid. I need to move the file and its parent directory to a different location in the repository. However, I'm unable to retrieve a copy of the file from the repository due to the following error reported in P4V (2010.2) and p4 on Linux & Mac OS X:

Bad AppleSingle/Double header.
Malformed FInfo/FXInfo structure! File not updated.

The file is an Apple DMG (disk image) installer. It appears th开发者_StackOverflow社区at the file in the repository is corrupted and I'm unable to retrieve it.

Is it possible to retrieve the file regardless of errors in the file in the repository?

Is it possible to move the file in the repository without have a local copy of the file in my workspace?


Use the command line tool:

p4 delete -n //path/to/the/rotten/file

As long as your client maps //path/... you can delete things without fetching them (eg, don't do a p4 sync first)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜