Saturday, July 07, 2007

Connected ...

It's been almost 3 years since I moved into my house (~10 km away from the nearest city). All I got from my telecommunication company was a radio phone with no chance of internet access at all. Two weeks ago, I finally switched to another company. It's still hard to believe, but I'm at home now, siting comfortably in front of my laptop and writing this blog entry.

Whoever invented WiMAX, thank you!

Friday, February 10, 2006

Tagging the latest version of previously tagged files in CVS


Some time ago a set of files ware committed to CVS repository and tagged (lets say with TAG1) . These files have changed a few times since then. Today I needed to tag the latest versions of all files that have ever been tagged TAG1 with TAG2.

This
cvs -Q log -R -S -rTAG1 .

gave me the files I was looking for but with /cvsroot/ in front and ,v at the end
/cvsroot/path/to/file1,v
/cvsroot/path/to/file2,v
...

so I had to remove it
cvs -Q log -R -S -rTAG1 . | sed s#/cvsroot/## | sed s#,v#\#

now I could actually retag these files
cvs -q tag TAG2 `cvs -Q log -R -S -rTAG1 . | sed s#/cvsroot/## | sed s#,v#\#`

It did the job but I think it's quite ugly way of doing such a "simple" operation.
There must be a another (simpler | non *nix specific) way!