Mercurial 如何在忽略一个文件的情况下更新hg
当检查hg时,验证Mercurial 如何在忽略一个文件的情况下更新hg,mercurial,Mercurial,当检查hg时,验证 portfolio/600x600/72.jpg@8: unpacking 346174023f35: revlog decompress error: Error -3 while decompressing data: incorrect data check 我需要更新除此之外的其他文件。在hg中是否有执行此操作的命令 例如,从版本49到版本50 像这样 hg update 50 -ignore portfolio/600x600/72.jpg 更新到修订版不支持此
portfolio/600x600/72.jpg@8: unpacking 346174023f35: revlog decompress error: Error -3 while decompressing data: incorrect data check
我需要更新除此之外的其他文件。在hg中是否有执行此操作的命令
例如,从版本49到版本50
像这样
hg update 50 -ignore portfolio/600x600/72.jpg
更新到修订版不支持此操作。但是,您可以将选定的文件还原为特定版本:
hg revert -rXXX FILENAME
它还支持--exclude
和--include
标志,因此您可以尝试:
hg revert -r50 --all --exclude portfolio/600x600/72.jpg
注意:在此之后,存储库将处于修改状态,如果您提交,则父版本将是您当前签出的修订版