Re: how do I undo local changes
Hello, adding to what Jason and Rahul said: * On Fri, Jul 08, 2005 at 03:27:13PM -0700 MEENA SELVAM wrote: but in CVS I only find the cvs admin -o command to revert to older versions. But how can i simply undo the changes locally, without concerning about version? From your statement, I am not sure if you correctly understand the impliciations of the admin -o command. Thus, the following applies: WARNING: DON'T DO THIS! ;) There is almost never a reason to do a cvs admin -o, thus, be very careful unless you fully understand what that means. This command has NOTHING to do with what you want to achieve. Your task can be done by removing the file before doing an update, or using up -C (as Jason und Rahul said). Best regards, Spiro. -- Spiro R. Trikaliotis http://cbm4win.sf.net/ http://www.trikaliotis.net/ http://www.viceteam.org/ ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
how do I undo local changes
Hi, I checkedout a file from a repository for first time. i modified it. but i do not want my changes. now i want to do a cvs update to get others changes. but i will be asked for merging. i want to avoid that step. even i want to prevent automatic merging so i need to undo the changes. in systems like accurev, there is a purge command to discard the local changes. but in CVS I only find the cvs admin -o command to revert to older versions. But how can i simply undo the changes locally, without concerning about version? meena __ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: how do I undo local changes
You can do : 1. cvs up -C file You will see a msg similar to (Locally modified license.props moved to .#license.props.1.1) It will pull the latest from CVS tree and save the current changes in a .# file 2. rm file and pull again - cvs co/up Regards, Rahul Bhargava CTO, WANdisco http://www.wandisco.com/cvs ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: how do I undo local changes
$ cvs -H up Usage: cvs.exe update [-APCdflRp] [-k kopt] [-r rev] [-D date] [-j rev] -A Reset any sticky tags/date/kopts. -P Prune empty directories. -C Overwrite locally modified files with clean repository copies. ( . . . ) -W spec Wrappers specification line. Looks like you want -C -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MEENA SELVAM Sent: Friday, July 08, 2005 6:27 PM To: info-cvs@gnu.org Subject: how do I undo local changes Hi, I checkedout a file from a repository for first time. i modified it. but i do not want my changes. now i want to do a cvs update to get others changes. but i will be asked for merging. i want to avoid that step. even i want to prevent automatic merging so i need to undo the changes. in systems like accurev, there is a purge command to discard the local changes. but in CVS I only find the cvs admin -o command to revert to older versions. But how can i simply undo the changes locally, without concerning about version? meena ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs