Domanda

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?

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top