Forcedly update workspace in Accurev

让人想犯罪 __ 提交于 2019-12-22 10:28:01

问题


Is there any command to update my workspace forcedly in Accurev, directly replace the local files with the backed files, and don't care about the conflict files, modified files and so on?

I really miss the cvs command cvs update -C -d


回答1:


According to question, I have similar issues. Usually I just use following commands:

accurev update -9
accurev pop -O -R .
accurev update



回答2:


No, you will need to run a few operations. You can create a script to force update your workspace.

Basically, you will generate a list of all the modified, kept, overlap, member files, then purge those files, then update your workspace.

Check out the stat section in the CLI manual.




回答3:


What You can do is delete all the local files from the file system and then do a:

accurev pop -R <path to local workspace directory>



回答4:


I had similar issue; First take a back up of existing workspace, then Delete all the files in the local work-space folder. Click update button on Accurev. All files will be re-loaded on the workspace.




回答5:


If you just want to undo all changes you have done in the workspace:

accurev stat -R -m -fl . | xargs -n 1 accurev purge

You can use similar command with rm / accurev pop to force refetch from backend. You can also vary the flags, -m for modified, -k for kept, -a for all.



来源:https://stackoverflow.com/questions/16395997/forcedly-update-workspace-in-accurev

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!