URL copied via "Copy URL to clipboard" results in error when pasted into Merge dialog

85 views
Skip to first unread message

Isaac Kroger

unread,
May 19, 2022, 10:37:21 AM5/19/22
to TortoiseSVN
I'm using TortoiseSVN 1.14.3.29387 (x64)
What I'm doing:
  1. Right click on the branch I'm developing.
  2. Via the context menu, select TortoiseSVN > Copy URL to clipboard
  3. Right click on trunk.
  4. Via the context menu, select Merge...
  5. I press "Next >".
  6. In the "URL to merge from" textbox, I paste the URL copied during step 2.
  7. I press "Next >" and then "Merge".
What happens:
  1. TortoiseSVN shows an error "Path not found".
  2. I close the dialog with the error.
  3. I right-click on trunk.
  4. Via the context menu, select Merge...
  5. I press "Next >",  "Next >" and then "Merge".
  6. TortoiseSVN performs the merge successfully without error.
So it's like the URL that I copied via the context menu is ill-formatted, and then TortoiseSVN fixes this when I open the "Merge" dialog a second time since TortoiseSVN remembers the last URL I tried to merge from.

What I expect to happen:
  1. TortoiseSVN performs the merge successfully the first time.

Stefan

unread,
May 19, 2022, 10:38:17 AM5/19/22
to TortoiseSVN

Isaac Kroger

unread,
May 20, 2022, 1:19:37 PM5/20/22
to TortoiseSVN
Just tested again this morning and the issue still remains.

The thread you linked to is regarding a different issue, where the clipboard is locked due to TortoiseSVN.

On Thursday, May 19, 2022 at 8:38:17 AM UTC-6 Stefan wrote:
already fixed:

Stefan

unread,
May 20, 2022, 1:58:44 PM5/20/22
to TortoiseSVN
Sorry, seems I misunderstood.

Are you right-clicking in Win11 explorer on the left tree view?
Then unfortunately we're out of luck until MS fixes the issues with it's new context menu...

Isaac Kroger

unread,
May 20, 2022, 2:27:09 PM5/20/22
to TortoiseSVN
Using Windows 10, and I'm right-clicking directly on the folder in Explorer, not on the left tree view.

Daniel Sahlberg

unread,
May 22, 2022, 4:33:04 PM5/22/22
to TortoiseSVN
I believe I can reproduce this. I see the following error message:

Unable to connect to a repository at URL

Note the %0A in the end of the URL.

I guess the copied URL contains LF character which is invisibly pasted into the "URL to merge from".

If I retry the merge without pasting the URL (TSVN is smart enough to remember the old URL) the merge succeeds, probably because TSVN remove the LF character when saving (or loading) the old URL.

Kind regards
Daniel

Isaac Kroger

unread,
May 25, 2022, 4:53:49 PM5/25/22
to TortoiseSVN
Thanks for the input Daniel. I can confirm your observations about the LF (actually I see a CR and LF) at the end of the URL when it's copied to the clipboard. Now I wonder if it's TortoiseSVN adding the CRLF. Hopefully so, that way we can get this patched.

Daniel Sahlberg

unread,
May 28, 2022, 5:06:06 PM5/28/22
to TortoiseSVN
onsdag 25 maj 2022 kl. 22:53:49 UTC+2 skrev isaac....@gmail.com:
Thanks for the input Daniel. I can confirm your observations about the LF (actually I see a CR and LF) at the end of the URL when it's copied to the clipboard. Now I wonder if it's TortoiseSVN adding the CRLF. Hopefully so, that way we can get this patched.

It was indeed TortoiseSVN adding LF to the end of the copied URL. The reason is that you can select multiple files and copy the URLs and in that case the URLs are on separate lines.

There has been a few commits to /trunk today that should remove the LF from the pasted content before mergeing (it was already done if doing a 2-way merge). Please check the nightly builds [1] tomorrow if you would like to test it.

Kind regards,
Daniel

Reply all
Reply to author
Forward
0 new messages