This script assumes that the directory structure on the disk mimicks the directory structure on the SVN repository, with a prefix (here: f:\work): f:\work\theProject\branches\aBranch\foo.txt corresponds to file foo.txt in the root directory of project theProject on branch aBranch. This will open page https://your-fisheye-server/browse/theProject/branches/aBranch/foo.txt. Of course, you will probably want to edit the location of the server...
rem rem Launch a browser directed to the Fisheye page for rem a particular file. rem rem mailto:xavier.nodet@gmail.com rem @echo off rem Assumption: first argument is a absolute path to the file rem on the disk for which we would like to display the rem corresponding Fisheye page. set FILE=%1 rem Remove the "f:\work" prefix from the file path set FILE=%FILE:f:\work=% rem @echo %FILE% rem Replace all the backslashes with forward slashes set FILE=%FILE:\=/% rem @echo %FILE% start "c:\Program Files\Mozilla Firefox 4\firefox.exe" https://your-fisheye-server/browse%FILE%
You will have to launch this script from your IDE with as single argument the full path to the file you want to see in Fisheye. Here is how to do this from Visual Studio. Open the 'Tools' -> 'External tools...' menu, click the 'Add' button, and fill the information needed, using $(ItemPath) for the argument:
You now have a 'Current file on Fisheye' entry on your Tools menu, that you simply have to choose to launch Firefox...
I hope you'll find this useful...