shell


19
Jun 09

Switching subversion repository

If you use Subclipse, switching to another repository in a local working copy can be pain in the ass, because Subclipse (and I think svn itself) only allows to change the path of the repository if it’s still in the same repository. I had to change the path from http://.. to https://.. and couldn’t do it in Eclipse. Subclipse reported an error: “https://.. is not the same repository as http://.. “. As a last resort I decided to manually update the repository in all of the svn’s entries files using the magic xargs command. Running this command in the project root directory did the trick (works with Cygwin on Windows as well):

find . -name entries | xargs sed -i "s/http:\/\//https:\/\//g"

21
Apr 08

Directory links on Windows

I didn’t know that it’s so simple to make directory aliases on Windows 2000+. There is an undocumented utility for it: linkd.exe (part of  Windows Server Resource Kit), which is roughly equivalent to ln -d in UNIX. So you can write:

LINKD Docs C:\Documents and Settings\Ilya\My Documents

And voila! You have now C:\Docs which links to My Documents.

More here