On Wed 2021-01-27 at 09:14h, you wrote:
On Wednesday, January 27, 2021 at 5:55:41 PM UTC+1 Niklas Matthies wrote:
TortoiseSVN version: 1.14.0.28885-x64 (most current version)
To reproduce:
1) Create a branch "old" and commit something to it.
2) Move (rename) the branch "old" to "current".
3) Open the log window for "current" (context menu "Show log").
4) Locate the commit from step 1 and select "Create branch/tag from
revision" in the context menu of that commit.
5) Change "To path" to "[...]/new" and submit the dialog ("OK").
=> TortoiseSVN shows an error dialog "Subversion reported an error"
with message "'<path>/current' path not found"
I think this behavior is what we want here, because there's no indication
in the log dialog that the url for which the log dialog is shown has
changed. So the error clearly tells the user that the path/url for which
the log dialog is shown does not exist in the selected revision.
This avoids a branch created from a wrong url.
Well, as a user it's suprising that the log dialog on the one hand
is able to construct the history across copies, showing revisions with
different URLs, and allows to initiate a copy from such a revision,
but then runs into an error. I understand from your comment on the
revision graph (which displays fairly quickly for me even with a large
number or branches and merges) that the information about the correct
URL is not readily available from the SVN history, so from that point
of view the behavior makes a certain sense. But it's still rather
unexpected from the user's point of view, and arguably could be
handled more gracefully. I suspect that it's a scenario that simply
wasn't considered when the functionality was originally implemented.
(And I fully sympathize with that. :))
Nevertheless, I'd like to find some way to improve the situation,
because branching from an older revision that lived on a different
path, e.g. on an archived or swapped branch, is a fairly frequent
use case in our projects. One possibility would be to make the "From
URL", or its "From path" suffix, editable in the Copy dialog, so that
the user has a chance to adjust it.
Another idea would be to add a Revision Graph action to the context
menu of revisions in the log dialog, and/or to add operations like
Copy (create branch/tag) to the context menu of revision nodes in the
Revision Graph. (I understand the latter would have implications for
updating the graph.) Anything that helps reduce navigation, and having
to remember which operations are available where, would be useful.
Maybe you have other ideas how the operation could be performed more
conveniently, starting from a revision shown in the log dialog.
Niklas
--
You received this message because you are subscribed to the Google Groups
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tortoisesvn/20210127223953.tsk76zziebru75sx%40nmhq.net.