Simple question about the shelve extension

Aardwolf toiletpot at gmail.com
Thu Apr 22 09:33:38 CDT 2010


Could someone provide me some help?

It seems not to be working.

I try now with "hg shelve -f" to shelve, because without -f it always says
there already is shelve data.

So now, I had two Added files and one Modified file. I do "hg shelve -f". I
check the hg status, and what do I see: the two Added files (A) are still
listed in hg status. The Modified file wasn't listed anymore (so probably
shelved by the tool).

I then did unshelve again, and the modified file did not come back!!

I've rescued it manually by checking the file in the shelve directory.

Anyway, I'd like to use the shelve to store my working directory in the
shelve, and later restore it exactly again. It doesn't seem to work for me.

How can I do this?


Aardwolf wrote:
> 
> Hi,
> 
> I got the shelve extension (hgshelve.py). I tried to shelve the working
> directory and unshelve again, which worked.
> 
> Then I tried to shelve again. Now it says: "abort: shelve data already
> exists".
> 
> Questions:
> 
> -I thought the unshelve command would move the data from the shelf to the
> working directory again, so that the shelf is "empty" again. Is it
> supposed to work like that, or does it work different?
> -How can I "clean" the shelve again, so that a next "hg shelve" command
> will shelve my working directory again? Or what is "the" method to shelve,
> unshelve, and later shelve again?
> 
> The usage scenario for me is using the shelve as a temporary way to store
> the working directory, then doing things that aren't allowed while having
> uncommitted changes such as merge or rebase, and then restore the working
> directory.
> 
> Thanks.
> 

-- 
View this message in context: http://old.nabble.com/Simple-question-about-the-shelve-extension-tp28241121p28329741.html
Sent from the Mercurial mailing list archive at Nabble.com.



More information about the Mercurial mailing list