This post originated from an RSS feed registered with Java Buzz
by Paul Brown.
Original Post: CVS Trick of the Day
Feed Title: mult.ifario.us
Feed URL: http://feeds.feedburner.com/MultifariousCategoryJava
Feed Description: Software. Business. Java. XML. Web Services.
Every once in a while, we end up needing to transfer a fragment of a project between developers without losing CVS state data. There is an easy way to do it with a bash one-liner:for i in `find . | grep -e '/Root$'`; do \
echo ':protocol:user@host:/cvs/dir' > $i; \
doneWhere :protocol:user@host:/cvs/dir should be replaced by the appropriate string for the new user. This preserves the CVS version information but changes the user and connection protocol.