push content of a symbolic link to remote server.

Uwe Brauer oub at mat.ucm.es
Tue Mar 28 21:35:47 UTC 2017


>>> "Arne" == Arne Babenhauserheide <arne_bab at web.de> writes:

    > Uwe Brauer <oub at mat.ucm.es> writes:

    >> > Uwe Brauer <oub at mat.ucm.es> writes:
    >> 
    >> 
    >> > It would be (with name->path as symbolic link)
    >> 
    >> > shell/repo1/lib->../repo3/lib
    >> >       repo2/lib->../repo3/lib
    >> >       repo3/lib
    >> 
    >> Now I am more confused. Shell is supposed to be a repo as well? And now
    >> repo1 and repo2 contain softlinks to repo3? Suppose I change something
    >> in repo3/lib and want to push. Where do I execute the push command?
    >> I thought to set up subrepos in repo1 and repo2.

    > To synchronize, you do in the *shell*:

    > hg commit -Sm "commit subrepos" # or something like that

    > Now shell contains a revision which synchronizes repo1, repo2 and
    > repo3. People who clone shell will have repo1 setup with a symlink to
    > the correct version of repo3.

Well than repo1, repo2 do not contain repo3 as a subrepo, it seems that
I understood it correctly. Moreover I have to push repo1, repo2 repo3, correct?

I see two problems:


    -  the soft links: if I share repo1 with a windows user, that
       approach might not work.

    -  suppose I want to share repo1 and repo3 with user1 but repo2 and
       repo3 with user2. Is that possible or do I have to share the
       shell repo with user 1 and user 2?
       


    >> Maybe I sent you, off list, a tar file of an example directory in order
    >> to see whether I understood you correctly.

    > You can do that.


I did that

Uwe 




More information about the Mercurial mailing list