Update not working with multiple paths specified in hgrc

Adrian Buehlmann adrian at cadifra.com
Tue Jan 18 04:29:50 CST 2011


On 2011-01-18 10:52, Chandran.external at lantiq.com wrote:
> Hi,
> 
> In the project i work for, we have developers working both on linux and windows environment.
> The repository created on linux is accessible on windows using a harmonized network drive.

Just curious: What is a "harmonized network drive"?

Are you trying to access mercurial repositories over the network using
SMB/CIFS network shares (aka Windows shares)?

> I was wondering if there was any way of executing all mercurial commands on this mercurial repository shared between windows and linux platforms.
> Here is the scenario:
> I have a directory in linux say /home/xyz which is accessible on windows platform on a mapped network drive Z:\
> I clone a repository test from /home/xyz/test_orig into /home/xyz. This repository automatically becomes accessible on windows platform as Z:\test
> The .hg/hgrc file will contain the path from where i cloned this repository (/home/xyz/test_orig) as an entry
> 
> [path]
> default = /home/xyz/test_orig
> 
> This means that any push/pull i perform from unix environment will push/pull changes to/from the repo specified in the default path.
> However, the same command if issued on Windows platform fails stating that /home/xyz/test_orig is not accessible
> Now i tweaked the hgrc file a bit to add another entry for windows
> My hgrc file for the repository test now looks like the following
> 
> [path]
> default = Z:\test_orig
> default1 = /home/xyz/test_orig
> 
> Push/pull and update works seamlessly on windows platform now.
> 
> Now there is another repository say test2 at /home/xyz/test2 which is again cloned from /home/xyz/test_orig
> The hgrc file for this repository is identical to that of the repository test
> 
> [path]
> default = Z:\test_orig
> default1 = /home/xyz/test_orig
> 
> On linux platform, i was able to pull  changes from test_orig by using the command
> hg pull default1
> However on executing the update command it failed giving the error :
> 
> hg update
> pulling subrepo abc from /home/xyz/test2/Z:\test_orig/abc
> abort: repository /home/xyz/test2/Z:\test_orig/abc not found!
> 
> On searching, i found that having multiple paths is supported in mercurial so as to have push and pull to separate repositories.
> Is this feature full fledged so that it supports update and other mercurial commands too?
> 
> I kind of stuck here and this is a bit critical. It would be great if someone could respond to this mail ASAP and guide me.
> 
> Thanks and Regards,
> Sharat Chandran
> Ph: 0091 9538948469


More information about the Mercurial mailing list