How do I revert a big change in CVS?

前端 未结 10 546
离开以前
离开以前 2021-02-01 16:49

One of my colleagues has totally messed up the contents of a directory in our main CVS repository. I need to just revert the whole module to the state it was in at the end of l

10条回答
  •  借酒劲吻你
    2021-02-01 17:21

    I believe your second command should also be a checkout, rather than an update. I can't justify this with logic, since there is no logic in the world of CVS, but it has worked for me. Try this:

    cvs co -P modulename
    cvs co -P -jHEAD -jMAIN:2008-12-30 modulename
    

    If you're reverting a branch other than HEAD, e.g. X, pass the -rX argument in both commands:

    cvs co -P -rX modulename
    cvs co -P -rX -jHEAD -jMAIN:2008-12-30 modulename
    

提交回复
热议问题