Mercurial: apply patch to working directory

I have a * .patch file with some modifications and I need to apply it to my working directory without committing. So, is this possible with TortoiseHg? Or, if not, is there a way to back up to the working directory?

+3


source to share


2 answers


Ok I found a solution.

Repository / Import / Preview (Combo Box)

      



Here you can select the "Working Directory" option.

+2


source


Another option would be the Shelve Tool , where you can freely move chunks and whole files between different patches and your working directory.

The button is above the commit message field:

Shelve Tool



And it gives you a nice interface to move fragments around freely.

Shelve Interface

+1


source







All Articles