Incoming Change Sets as Patches? [message #326751] |
Mon, 31 March 2008 15:17 |
Eclipse User |
|
|
|
Originally posted by: Masha_Krol.ca.ibm.com
Hello all,
I've noticed that between the version of our codebase that I have in my
workspace and the latest code from CVS HEAD, some commit broke my
functionality. I've synchronized to find several incoming change sets. I
would like an easy way to apply them one at a time with the possibility of
reverting - so I was thinking of creating patches from the change sets and
applying/reverting them as needed (unless there is some other awesome way
to do this). However, this functionality does not seem to be available for
incoming change sets; am I missing something?
Thanks in advance,
Masha
|
|
|
Re: Incoming Change Sets as Patches? [message #326759 is a reply to message #326751] |
Mon, 31 March 2008 19:21 |
Eclipse User |
|
|
|
Originally posted by: groups.pellaton.li
Hi
Sorry, I don't know how to do that using Eclipse. However the good old
command line cvs client may help you. It can create diffs between any
two revisions of a file (forward and reverse). If the correct flags are
used, Eclipse is able to import the diffs of cvs as patches.
The following command creates a reverse patch to revert the file
foo.txt from revision 1.3 back to revision 1.2:
cvs diff -u8pN -r 1.3 -r 1.2 foo.txt > foo.patch
Hope that helps
Michael Pellaton
|
|
|
Powered by
FUDForum. Page generated in 0.02784 seconds