Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there a way to manually apply the diffs in hg unshelve -i output?

hg shelve did it again - even after applying the patch described in hg unshelve not working (which worked happily for about a month), shelve just "lost" all my changes again.

I see the name of my shelve when running hg shelve -l, but when I do hg unshelve -n <name> I get the dreaded "nothing to unshelve" message.

I can see all the changes with hg unshelve -i -n <name>. What's the easiest way to get them back in my local repository since the unshelve command refuses to acknowledge that they're there, even though it will happily show them to me?

like image 530
Jer Avatar asked Dec 03 '25 19:12

Jer


1 Answers

You can try the patch command. hg help patch for some help.

I'm not familiar with the shelve extension, but I think you can do something like this :

$ hg unshelve -i -n <name> > modifications.patch 
$ hg patch modifications.patch
like image 58
krtek Avatar answered Dec 05 '25 15:12

krtek