วันนี้ทดลองใช้ระบบกู้คืนข้อมูล ของ cvs ดูพบว่าทำได้ดีมาก เราสามารถที่จะเลือกกู้จากจุดใดก็ได้ที่เคย commit ไว้ ไม่จำเป็นต้องเป็นจุดล่าสุด ซึ่งทำได้ดังนี้
1. Right click at the file we want to restore, go to cvs menu and choose 'history'.
2. Dialog will pop up and we will see every revision we commited. Right click on a revision we prefer to get a pop up menu. Please read 3 before you move on.
3. There are 'Get this revision (sticky)' and 'Get clean copy of this revision (sticky)'. If we select the first option, we will get the mixture of our current uncommitted edition and the committed one (if no conflict involved). If we choose the second option, we can obtain the fresh start over (or fresh new version).
Explaination: The first option is designed for update/merge, not start over. For example, someone may check out the same file and commit new version. If we want to get the new version without manual copy-paste for update, we can try the first choice. Note that manual copy-paste may be required if there is conflict between committed and uncommitted one.
For second option, we can make a start over at our current option. In case somebody committed new version and we want to retrieve the new one, if we want to throw our uncomitted change away, choose the second option. That's why I said we can both restore or get new version.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment