I would agree with the other replay about using mq strip command. I would also note that on windows with windows-line-endings in the versioned files the output of 'hg export' needs to be piped through unix2dos or else patch will segfault. I'm using the gnuwin32 version of patch. For example:
hg export 1234 | unix2dos > cset_1234.patch The same applies to 'hg diff'. I would regard this as a bug in something, but I was never sure what! I'd be really happy if it would get fixed since I want to encourage my team to think in terms of diff & patch, but such annoyances cause even more grief than it should. On Monday 15 March 2010 10:05:08 am Andreas Tscharner wrote: > Hello World, > > If a new bug has been found, I sometimes suspect a specific changeset > being the culprit. In this case, I'd like to revert exactly that > changeset without commit (e.g. no backout) to test if it really is the > culprit. > I haven't found anything in THG and hg revert does more than I want, > because it reverts all changesets to the selected one. > > How do I do this? > What I tried is: Export a patch of that changeset with THG and tried to > apply it with -R option (which usually causes Win32 patch.exe to > segfault for some unknown reason). > > Thanks in advance and best regards > Andreas > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

