Tags on forests?

Benoît Allard benoit at aeteurope.nl
Tue Apr 1 04:09:48 CDT 2008


Roman Kennke wrote:
> Hi,
> 
>>> Nobody has an idea? Also, I'm not sure what the snapshot and seed
>>> features are about, they sound interesting, but I don't know how they
>>> work. Is there documentation somewhere?
>> fsnap and fseed works together to save the current state of your forest 
>> (fsnap) and restore it later on (fseed). Both those command works in 
>> combination with a snapshot file. That one is created by fsnap, and read 
>> by fseed. A snapshot file only represent the state on the forest 
>> including the list of the embedded trees, their current revision and 
>> their associated path (to be able to fpull, fpush from a snapshot file).
>>
>> The following commands show the usage of such a file:
>>
>> $hg fsnap > current.snapshot
>>
>> [hack a bit, commit, update, whatever ...]
>>
>> $ hg fseed current.snapshot # after that command the forest state is the 
>> same as when saved during fsnap
> 
> Cool. So it would be possible to implement tagging on forests using
> fsnap and fseed. For example, when I have a forest that I want to tag, I
> would do the following (assuming that the file tag-snapshot is tracked
> by HG already).
> 
> $ cd $FOREST_ROOT
> $ hg fsnap > tag-snapshot
> $ hg commit -m"message"
> $ hg tag tag1
> 
> 
> Later, when I want to get a working copy of the forest at the tag, then
> I can do this:
> 
> $ cd $FOREST_ROOT
> $ hg update tag1
> $ hg fseed tag-snapshot
> 
> Right?

Should work like a charm ...
Nice idea ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4197 bytes
Desc: S/MIME Cryptographic Signature
Url : http://selenic.com/pipermail/mercurial/attachments/20080401/64935a1f/attachment.bin 


More information about the Mercurial mailing list