views:

1950

answers:

3

TortoiseHg allows you to email a patch file of your changes to someone, but does it support applying patches?

If so, how do you apply a patch using TortoiseHg?

Solution Thanks @Will Bickford for your help. I just found this feature listed as a TODO on the TortoiseHg site.

+5  A: 

It looks like there is no built-in support in TortoiseHg for this. Try this from a command prompt:

hg import my-patch-file.patch

That should apply the patch to your Mercurial repo and working copy.

First Stab Answer

You should be able to right-click on the patch file and choose "Apply patch..." - that's how it works for other TortoiseX clients. Make sure that you save the patch file to the same directory path it was generated from.

Downloading TortoiseHg 0.8.1 to test...

Will Bickford
Thanks for the suggestion. I don't see that option.
Michael La Voie
Yeah I downloaded it and it took me a while to find the "email patch" feature you were referring to. Tinkering...
Will Bickford
Thanks for the help, hopefully it will get added in a future release.
Michael La Voie
+12  A: 

From Repository Explorer, Synchronize > Import...

Tim Scott
Good call. As of V1.0 patch importing is part is part of TortoiseHg
Michael La Voie
+1  A: 

Tortoise Hg has documentation on creating and applying (importing) patches:

http://tortoisehg.bitbucket.org/manual/1.0/patches.html

Sherri
Excellent! I hadn't seen the documentation. Its really high quality.
Michael La Voie