> How to have two urls with two working copies?
>
> From fsvs docs, I understand that I have to commit using command line
> parameters. Example:
> fsvs commit -u 'url1' /dir001 /dir002 ... /dir099
> fsvs commit -u 'url2' /dir101 /dir102 ... /dir199
If your data directories are completely distinct, as in this example, I'd
advice using a
wrapper script and different FSVS_WAA and FSVS_CONF paths.
> I have few questions, please:
>
> 1) do we have ignore (and take) patterns per url?
No; but I'm currently working to get patterns define the URL to be used, that
might do
what you want.
> 2) If I ignore all url2 dirs: /dir101 /dir102 ... /dir199
> Commit to url1 will become very simple:
> fsvs commit -u 'url1' /
> What about commit to url2? Will it work? All dirs are already ignored:
> fsvs commit -u 'url2' /dir101 /dir102 /dir199
Yes, you'd have to use different FSVS_CONF and FSVS_WAA paths.
> 3) Having 99 dirs as command line parameter is not nice. Fsvs ignore
> load, is much better:
> $ cat ignore1 | fsvs ignore load; fsvs commit -u url1 /
> $ cat ignore2 | fsvs ignore load; fsvs commit -u url2 /
>
> Is it a good solution? Will it works always: sync-repos, commit, update,
> revert...?
Hmmm, maybe?
As update, sync-repos and revert don't use the ignore patterns, and you're
using the
correct set on commit, it *could* work.
> 4) is there better solution, for example using FSVS_CONF?
Yes, that's what I'd propose - at least until the grouping patterns can give a
default URL.
> 5) what if the case is more complicated:
> fsvs commit -u 'url1' /dir1/url1 /dir2/url1
> fsvs commit -u 'url2' /dir1/url2 /dir2/url2
>
> In this case:
> - Both dirs (dir1 and dir2) will be commited to both urls: url1 and url2.
> - if I commit to url1, it will commit meta data of both dirs: dir1 and dir2.
> - if I update from url1 (or url2), it will update the meta data of both
> dirs: dir1 and dir2.
>
>
> <<...in case the same entry is in more than one. *(Which is *not*
> recommended!)*>>
> What is the answer?
> Nested working copies not supported?
Hmm, that's not so easy.
- You could define *each* directory as it's own working copy, so they
wouldn't be nested.
- You could use FSVS_WAA and FSVS_CONF (with ignore patterns like
"/*/dir1/" etc.).
- You could wait for the feature already mentioned above; then you
could simply put at the end of your grouping patterns
group:to_url1,/*/dir1/**
and define the default URL for the group "to_url1".
> Or
> Having a directory meta data in both urls is NOT critical (not
> recomended, but possible)?
It shouldn't give any problems, AFAIK.
> Please, give me some hints, example or point me to the right docs.
I hope the ideas above help a bit ... if they do not, just ask.
> Thank you.
You're welcome!
Regards,
Phil
--
Versioning your /etc, /home or even your whole installation?
Try fsvs (fsvs.tigris.org)!
------------------------------------------------------
http://fsvs.tigris.org/ds/viewMessage.do?dsForumId=3928&dsMessageId=1225312
To unsubscribe from this discussion, e-mail:
[[email protected]].