Hi Stefan,
I have tried it out, thanks a lot for implementing.
Improvements, comments:
1) Could you also add it to the "Show log" window (right click on a folder/file -> "Show log" -> right click on a certain revision -> "Copy to clipboard" -> "URLs with revision"?
-> It would be very cool to be able to use it both in "Show log" opened from within the Repo-browser or opened from the Windows context window.
2) Could you add this feature to the folders/directories as well that it is also possible to copy a versioned URL from a folder? (currently it works only for files)
3) I have experimented with peg (/?p=5) and fixed revision (/?r=5) and as you have already remarked the fixed revision (/?r=5) should be used in order to get it working reliable.
-> HENCE: Could you please change it to the fixed revision ("/?r=")?
-> DETAILS to 3): In following cases the versioned URL with the peg-revision does not work properly/as expected: if you create tags or branches and copy a versioned URL from a file/folder of it which was not modified in
context of it [this case is always applicable for a tag!] then the versioned URL doesn't work (the server returns: "Not Found").
e.g. File "myFile.txt" was modified the last time at revision "2" within the /trunk/. At revision "11" a tag is created from the trunk which includes this file. If you copy the versioned URL of this file then you will get: "<URL to server/folder>/myFile.txt/?p=2"
Unfortunately this URL does not work. It works only if you substitute the revision "2" with the revision at which the tag was created: "<URL to server/folder>/myFile.txt/?p=10". But if you create the versioned URL with the fixed revision it works fine:
"<URL to server/folder>/myFile.txt/?r=2".
BR, Eugen.