vendredi 8 février 2008

easy backport

I am a tech writer, and sometimes, just after a branch, I frequently have two checkouts living side by side, one for each version. Since the branch was made very recently, the files are still the same, so contain the same bug.

Since I keep version numbers in the path, head is 200, and will remain so until v3 is out.

Ex:

~/cvs_200/doc/xml/somedir
~/cvs_203/doc/xml/somedir

Often I am far down in the fs and

Once I have fixed the bug on head, I run:

cd `echo \`pwd\` | sed -e 's/200/203/'`
cvs up -j HEAD file.xml
cvs commit

Aucun commentaire: