Recover - Everything in TortoiseHg Workbench

A simple question: is there a way to get back - everything from Workbench TortoiseHg? I see how to return a separate file. Ideally, I could click on the revision, and in the right menu of the mouse, find the "return all" item.

I am using TortoiseHg 2.8 in a Ubuntu field.

EDIT I ​​had to provide more details on my subject in order to provide some context. Let me describe a specific use case:

I want to return the working directory to the state of the previous commit so that I can generate output from the executable, which, as I know, is "good." As soon as I generated this conclusion, I want to return to the prompt and continue my development, keeping this story linear. From the command line, I made "hg revert -all -rev 22", generated the output, then "hg revert -all", which did what I wanted. "hg update" will create a story with a branch (if I understand correctly). FWIW has the Refresh button in TortoiseHg (in the field where the list of files is displayed), as well as the right-click menu item in this revision.

+7
mercurial revert tortoisehg
source share
2 answers

To configure the working directory according to the state of this change set (which may be tip ), you can use Update:

  • Right-click on the changeset you want to revert to.
  • Select Update
  • Check the box "Undo local changes."
  • Click Update

The console will have hg update -r changeset -C .

Now you can create output from the "state" of the working directory at this point in history (i.e. from the executable in this set of changes). If you don't make any commits, a set of changes will not be created, and therefore nothing will be added to the repo history.

Once you have a way out to your satisfaction, you can again upgrade to tip development through the same process and continue your work:

  • Right click on tip development.
  • Select Update
  • Check the box "Undo local changes."
  • Click update

The advantage of using update over revert is that Tortoise will explicitly display the parent of the working directory as the set of changes it contains. In the revert section, it would be very easy to restore files and lose information about what changes you returned and what part of the history you took.

(It is assumed that you want to go to this point in history. If you need to create a change set that undoes the previous change set, check backout , although I'm not sure if this is available in Tortoise.)


+10
source share

You can select all modified files in the list using Ctrl + A, and then select "Revert" from the context menu.

0
source share

All Articles