New Feature: "Copy versioned URL to clipboard"

271 views
Skip to first unread message

EugenX

unread,
Sep 21, 2018, 3:42:33 AM9/21/18
to TortoiseSVN
Hello,

There is a very useful feature in the context menu of TortoiseSVN: "Copy URL to clipboard".
In my opinion, in addition to it, it would be very useful to have the feature "Copy versioned URL to clipboard", which copies the URL of an element (file or folder) including it's last changed revision:

Furthermore it would be very useful to have this feature also in the context menu of the "Repo-browser" and the "Show log" view in order to be able to copy a versioned URL of a specific revision of an element (file/folder)

This feature would be very useful in case of using TortoiseSVN for developing of safety critical software according to guidelines like DO-178 or ISO-26262, where you need to specify exactly the elements e.g. you have reviewed or you have used. The big advantage of a versioned URL is that you can navigate easily to the corresponding element just by clicking on it.

What do you think? Is it possible to add it to TortoiseSVN?

Best regards, Eugen.

EugenX

unread,
Sep 21, 2018, 7:57:54 AM9/21/18
to TortoiseSVN
Hello,

There is a very useful feature in the context menu of TortoiseSVN: "Copy URL to clipboard".
In my opinion, in addition to it, it would be very useful to have the feature "Copy versioned URL to clipboard", which copies the URL of an element (file or folder) including it's last changed revision:
e.g. https://192.168.2.76/svn/myRep/trunk/doc/User_Manual.pdf/?p=13 (instead of without the revision: e.g. https://192.168.2.76/svn/myRep/trunk/doc/User_Manual.pdf)

Furthermore it would be very useful to have this feature also in the context menu within the "Repo-browser" and the "Show log" view in order to be able to copy the versioned URL of a specific revision of an element (file/folder).

This feature would be very useful especially in case of using TortoiseSVN for developing of safety critical software according to guidelines like DO-178 or ISO-26262, where you need to specify exactly the elements e.g. you have reviewed or you have used. With a versioned URL you have the big advantage that you can navigate easily to the corresponding element just by clicking on it.

Stefan

unread,
Sep 21, 2018, 10:17:45 AM9/21/18
to TortoiseSVN
You're passing a peg revision to the url, not a fixed revision. For that the format would be /?r=13.
Also, this only works for http(s):// based repositories.

But I think what you really want is to set up the integration with whatever issue tracker you're using.
See here on how to do that:
and

and in a log message, just write "r1234" and TSVN will convert that to a link to the specified revision.

Stefan

EugenX

unread,
Sep 24, 2018, 3:17:22 AM9/24/18
to TortoiseSVN

Hi Stefan,

thanks for your answer, but we just want to be able to copy a versioned URL of an element as easiest as possible. Currently we have to build it manually but in my opinion it would be very useful to have it as an additional feature in TortoiseSVN.

BR, Eugen.

EugenX

unread,
Sep 27, 2018, 2:36:45 AM9/27/18
to TortoiseSVN
Hi TSVN-Developers,

Finally, what do you think about the feature: "Copy versioned URL to clipboard"? Is it possible to upgrade TSVN with it in the future?

BR, Eugen.

Am Freitag, 21. September 2018 16:17:45 UTC+2 schrieb Stefan:

Stefan

unread,
Oct 1, 2018, 2:04:50 PM10/1/18
to TortoiseSVN


On Thursday, September 27, 2018 at 8:36:45 AM UTC+2, EugenX wrote:
Hi TSVN-Developers,

Finally, what do you think about the feature: "Copy versioned URL to clipboard"? Is it possible to upgrade TSVN with it in the future?

done in r28385

Stefan

EugenX

unread,
Oct 2, 2018, 3:47:08 AM10/2/18
to TortoiseSVN
Hi Stefan,

Thank you very much! How can I try it out? Do you plan to make an official TSVN release with this feature?

BR, Eugen.

Stefan

unread,
Oct 3, 2018, 3:41:25 PM10/3/18
to TortoiseSVN


On Tuesday, October 2, 2018 at 9:47:08 AM UTC+2, EugenX wrote:
Hi Stefan,

Thank you very much! How can I try it out? Do you plan to make an official TSVN release with this feature?

of course there will be another official release.
Or do you think that 1.10.1 was the last one? :)

EugenX

unread,
Oct 4, 2018, 2:56:19 AM10/4/18
to TortoiseSVN
OK, it sounds good. No, I don't think that 1.10.1 was the last release :-). 

1) Do you have already a schedule for the next release?

2) Is it possible to try out the development version (r28385 or later) where you have added this feature before it is released? If yes, how can I do this?

BR, Eugen.

Stefan

unread,
Oct 4, 2018, 11:56:36 AM10/4/18
to TortoiseSVN


On Thursday, October 4, 2018 at 8:56:19 AM UTC+2, EugenX wrote:
OK, it sounds good. No, I don't think that 1.10.1 was the last release :-). 

1) Do you have already a schedule for the next release?

svn 1.11 is scheduled for October 25, so TSVN will have an 1.11.0 by then as well.
 

2) Is it possible to try out the development version (r28385 or later) where you have added this feature before it is released? If yes, how can I do this?

EugenX

unread,
Oct 5, 2018, 8:31:57 AM10/5/18
to TortoiseSVN
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.

Stefan

unread,
Oct 5, 2018, 11:09:45 AM10/5/18
to TortoiseSVN


On Friday, October 5, 2018 at 2:31:57 PM UTC+2, EugenX wrote:
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.

 done in r28389

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)

done in r28390
 

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=")?

done in r28388


EugenX

unread,
Oct 9, 2018, 8:56:39 AM10/9/18
to TortoiseSVN
Hi Stefan,

thank you for the quick update! I have checked it out, it works fine, but if you open the context menu for the features mentioned below within the left side of the Repo-browser (see red mark in the attached figure) then we have some issues:

1) Repo-browser -> Right click on a folder -> "Copy to clipboard" -> "Urls" 
--> Copies also the URL including the revision. I assume it was not intended?!?

2) Repo-browser -> Right click on a folder -> "Copy to clipboard" -> "URLs with revision" 
--> Copies the URL with a wrong revision:
Example: ".../tags/.../ChangeHistory/?r=445"
But the last changed revision of this folder is 6, so I would expect the versioned URL as follows: .../tags/.../ChangeHistory/?r=6


If the feature is used within the right part of the window (see blue mark in the attached figure) then it works fine both for folders and files.


3) By the way in the version I have used for verification [TortoiseSVN-1.10.99.28390-dev-x64-ipv6-svn-1.10.dev.msi] I wasn't able to enter a log message before committing changes to the repository. Is this already known?


BR, Eugen.

Figure: 

TSVN_CopyVersionedURL_MissingLogViewOpenedFromWinContextMenu.png

Stefan

unread,
Oct 9, 2018, 2:07:34 PM10/9/18
to TortoiseSVN


On Tuesday, October 9, 2018 at 2:56:39 PM UTC+2, EugenX wrote:
Hi Stefan,

thank you for the quick update! I have checked it out, it works fine, but if you open the context menu for the features mentioned below within the left side of the Repo-browser (see red mark in the attached figure) then we have some issues:

1) Repo-browser -> Right click on a folder -> "Copy to clipboard" -> "Urls" 
--> Copies also the URL including the revision. I assume it was not intended?!?

fixed in r28393
 

2) Repo-browser -> Right click on a folder -> "Copy to clipboard" -> "URLs with revision" 
--> Copies the URL with a wrong revision:
Example: ".../tags/.../ChangeHistory/?r=445"
But the last changed revision of this folder is 6, so I would expect the versioned URL as follows: .../tags/.../ChangeHistory/?r=6


fixed in r28394
 
3) By the way in the version I have used for verification [TortoiseSVN-1.10.99.28390-dev-x64-ipv6-svn-1.10.dev.msi] I wasn't able to enter a log message before committing changes to the repository. Is this already known?

try settings dialog->advanced->ScintillaBidirectional --> false
I've already changed the default to 'false', but if you ever got to that dialog then the previous default (which was true) might have been saved.

Stefan

EugenX

unread,
Oct 10, 2018, 8:29:58 AM10/10/18
to TortoiseSVN
Hi Stefan,

I have checked it, it works fine. No further comments from my side.

Thank you very much!

BR, Eugen.

Stefan

unread,
Oct 10, 2018, 10:44:09 AM10/10/18
to TortoiseSVN


On Wednesday, October 10, 2018 at 2:29:58 PM UTC+2, EugenX wrote:
Hi Stefan,

I have checked it, it works fine. No further comments from my side.

Thank you very much!

Thanks for testing!

Stefan

Ben Rule

unread,
Sep 21, 2020, 10:37:38 AM9/21/20
to TortoiseSVN
Has this feature been removed? I just updated from 1.9.x to 1.14.0 and cannot find this feature. Thanks.

Dionisio Ramirez Flores

unread,
Jan 6, 2021, 5:21:06 PM1/6/21
to TortoiseSVN
Hello,
I'm currently looking for this feature as well. In version  +1.9.7 I can only see "SVN Copy URL to Clipboard" but nothing similar as "SVN Copy URL to Clipboard with revision"
Thanks

EugenX

unread,
Jan 26, 2021, 9:56:51 AM1/26/21
to TortoiseSVN
Hi Guys,

well this feature was implemented on request and is available only since the 1.10.xx version (it is not available in the 1.9.x-version).  I would expect that it is also available in all versions >= 1.10.xx, but I'm nor sure because in my company we still use the 1.10.xx-version. I will check out the 1.14.xx version und will give a feedback.

BR, Eugen.

EugenX

unread,
Jan 26, 2021, 10:55:56 AM1/26/21
to TortoiseSVN
Hi,

well this feature is still there (checked in the newest version : "TortoiseSVN 1.14.0, Build 28885 - 64 Bit , 2020/05/24 13:32:45").

-> In order to copy a URL incl. a specific revision from a file/folder: Go to the related "Show log" view, right click on the revision you want to have the versioned URL from go to "Copy to clipboard" and left click on "URLs with revision".
--> Alternatively you can copy the URL incl. the last changed revision -> Go to "Repo-browser" -> Right click on file/folder you want to have the versioned URL from, go to "Copy from clibboard" and left click on "URLs with revision"

BR, Eugen.
Reply all
Reply to author
Forward
0 new messages