K
K
kk862012-04-14 22:05:25
CVS
kk86, 2012-04-14 22:05:25

Mercurial: how to make multiple interdependent repositories without duplicating them

Hello!

I have several projects written on dotnets. One of them (FrameworkProject in my example) is a small general purpose class library. There are also two separate, unrelated application projects (UserProject1 and UserProject2). Each of the application projects has a reference to the FrameworkProject project. In other words, UserProject1 and UserProject2 "look" at the same directory where FrameworkProject is located, and every time an application project is compiled, the class library is compiled along with it. This is done intentionally and is part of the problem statement .

The picture below illustrates the situation with links between projects:


The projects themselves are located on the file system "next to" each other in a separate directory that I use for development:

image
Each of these directories is a Mercurial repository.

Question: how can I make pull and/or update of the repository located in C:\Workspaces\UserProject1 or C:\Workspaces\UserProject2 synchronously pull and /or update the repository located in C:\Workspaces \FrameworkProject? Note that I don't want to have duplicate FrameworkProject repositories in UserProject1/UserProject2 as the subrepos mechanism suggests.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Riateche, 2012-04-15
@kk86

Write hooks in UserProject1 and UserProject2 so that when certain actions are performed in UserProject1 and UserProject2, the necessary actions are performed in FrameworkProject.

K
Konstantin Kitmanov, 2012-04-14
@k12th

Symbolic links ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question