[ANN] HgSccPackage v1.2

Chris Scott Chris.Scott at mmodal.com
Mon Apr 5 16:15:51 CDT 2010


>>> Lastly, I have a bunch of existing projects where the csproj isn't 
>>> the root of the hg repository (typically one directory up).  Is there 
>>> a way to indicate where repo root for a project is?
>>>    
>>
>> No, this use case is not supported.
>> If I understand correctly, your project files are outside of repository ?
>> Are these files generated with some tool like cmake ?
>>
>
>I read it as the project files are in a subdirectory of the repository.
>
>They are in mine too - I use waf as my primary portable build system, 
>with the wscript in the root, but I also have a subdirectory contining 
>solution and a tree of visual studio projects that map the same projects 
>so I can work on the code easily in Windows (which happens to be my 
>preferred dev environment for non-POSIX stuff). I don't want the VS 
>files to clutter to root.

Yes, this is my use case as well.  I'll have a repo at, say, c:/src/Project/ but actual projects under that location, say, c:/src/Project/Component and c:/src/Project/Sub/Component2.  Also, in one solution, I may have projects in different repositories, say, c:/src/MyLib/

So yes, they are all under a repo, but can be deeply embedded and possibly in different repos in a single solution.  As Benoit mentioned -- and which I had not noticed until today -- all of these cases could be solved by incorporating 'hg root' from the project file location.

~Chris



More information about the Mercurial mailing list