Revert file to its 'source' revision
Whenever I want to revert a file to its historical revision, I feel I have no idea how find the revision I'm looking for. In some cases when I'm working in a branch, I need to revert all changes I made in a file in that specific branch. So I go to the revision history list of the file, and intuitively look for a revision being lower than the current one, and which is located in the main branch. But that approach is completely wrong. If you work according to the branch and merge rules, file revisions are always generated in branches, right? So the revision history list shows only sub-branches. But I need to find the revision my branch was created with to revert the file to it.
So I go to the 2D history view of the file. It's much better, but I can't see my branch, because I don't usually remember its name. The current revision of the file is not highlighted in any way in that view. So I switch to branch explorer to check the name of my branch, and then switch back to the 2D history to look for it. When I find it, I start looking where it stems from to right click that 'source' revision and revert the file to it. But there is no such option in the context menu. OK, so I read the revision number and go to the revision history list to look for it. But it's not there. It turns out that the 2D revision tree shows changesets that contain the revision (they are marked "U"), or that are a result of a merge (marked "C me"), and these two are not displayed in the revision history list. Eventually I look through the main branch in the 2D view to find a changeset marked "C", that is closest to the changeset my branch stems from. I find it in the revision history list and revert. That's too complicated, don't you think?
Long story short:
1. Please add a "revert to this revision" option to changesets in the 2D revision history tree.
2. Please highlight the current file revision in the 2D revision history tree so it is easy to find.
3. Please mark somehow the 'source' revision of file in the revision history list, so I can revert all changes I made in my current branch by choosing the highlighted revision. Or add a "revert to source revision" option in the context menu of files. I know you will find a good solution.
Thanks a lot!
http://www.plasticscm.com/download/releasenotes/5.4.16.619
Added a context menu option to allow users reverting to a specific revision
from the version tree 2D.
In addition to that, when the 2D version tree is loaded, the revision loaded in
the workspace is automatically selected and focused.
-
Mariusz Schimke commented
Hi,
Did you decide to remove that feature? Plastic SCM 5.4.16.642 seems to be missing it. It is no longer possible to revert file to a selected revision on the 2D revision tree. Neither does the diagram indicate the loaded version of the file in the workspace.
-
Mariusz Schimke commented
Thanks a lot!
I'm wondering if implementing option 1 might cause option 3 to be redundant. What do you think? If I can see my branch in the 2D revision tree, and the parent changeset as well, then 'revert to this revision' called on that parent changeset would bring me the file revision I need, right?
Still, however, the parent changeset may be a 'U' changeset (unchanged). But if you add option 1 to those changesets as well, option 3 will be redundant. Am I correct? What do you think?
-
Mariusz Schimke commented
I mean the revision of file that you can get when switching back to the changeset your branch originates from.
When we work in a branch, sometimes we decide to discard all changes we made in a file within that branch. That's why the feature I suggested would be useful for us.
Thanks!
-
Mario,
What do you mean in point #3 by "source revision"? The parent of the first revision of your file in the branch you're working??
Points #1 and #2 are clear to me, but point #3 is very confusing.