'forest' extension
Robin Farine
robin.farine at terminus.org
Sun Jul 16 22:30:11 UTC 2006
On Sunday July 16 2006 20:51, Eric Bloodworth wrote:
> I guess I'm (incorrectly) assuming that the snapshot file is a
> snapshot of the trees you see with snapshot-trees. Is there is
> some reason you need to read the snapshot file that I'm not
> understanding?
The reason for reading a snapshot file and update it is that when
one clones a repository, its paths section will only contain
the 'default' alias 'clone' puts in .hg/hgrc. But what I want to do
is to be able to have more than one location for each sub-tree, one
for each mainline repository, one for a backup of each repository
on a USB stick, ... Having the possibility of updating an existing
snapshot file allows me to edit a snapshot just after I created it
and then update it so that only the revisions or new trees get
changed, the path aliases I have added for existing trees are
preserved.
Of course, I could also edit all of the sub-tree .hg/hgrc files to
add all the aliases I need but I find this more cumbersome than
editing a single file.
> Also, forest-trees uncorrectly handles symlinks (hg-current is a
> symlink):
>
> [extern/hg-current]
> /home/eric/extern/hg-current: unsupported file type (type is
> symbolic link)
Ah, good point. I thought that using isdir() would handle symbolic
links just fine.
Thanks,
Robin
More information about the Mercurial
mailing list