Subrepositories location
Kastner Masilko, Friedrich
Kastner-Masilko at at.festo.com
Thu May 19 15:56:20 UTC 2011
> -----Original Message-----
> From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of J.S. van Bethlehem
>
> So today I started experimenting a bit with the subrepo feature. And I
> have the following question:
> is the location of a subrepo in some limited?
>
> I have the following in my .hgsub file:
> bool = ../bool
>
> It's kind of weird, I know, but that's the way it is. So I have some
> repository that should become the subrepo that is at the same level as
> the current repo. Now when I did hg ci, indeed I got a message that it
> was first comitting ../bool before comitting the current repo. Yet, when
> going to ../bool I saw that nothing had happened! So: is there some
> limitation on the type of relative paths that is accepted as subrepo?
> (eg: any subrepo for which the path starts with ../ is simply not
> allowed?)
To me this sounds as if you want to do the following:
1. Edit something in ../bool
2. Go to your superrepo, issue "hg ci".
3. Have the changes in ../bool commited, without having an actual subdirectory "bool" in your superrepo folder.
I guess this is a misunderstanding of what the right side of .hgsub entries is doing. It is just the path to the remote repository your subrepo will push to / pull from. In the case of relative paths, they are concatenated to the superrepo's origin path.
OTOH, it is also possible that you wanted to have the bool subdirectory in your superrepo folder behave like a share to ../bool. In this case you have to keep in mind that subrepos are just that: normal Mercurial repositories. If you want them to be something else, like a share or a softlink, you'll have to do that manually.
There was a discussion about subrepo paths just some days ago, where I posted a patch to add a new subrepo-type called [link]: http://www.selenic.com/pipermail/mercurial/2011-May/038402.html
Maybe this is what you had in mind?
regards,
Fritz
Development Software Systems
Festo Gesellschaft m.b.H.
Linzer Strasse 227
Austria - 1140 Wien
Firmenbuch Wien
FN 38435y
Tel: +43(1)91075-198
Fax: +43(1)91075-282
www.festo.at
Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Jede Form der Kenntnisnahme,
Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieses E-Mails durch unberechtigte Dritte ist unzulaessig. Wir
bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu setzen, falls Sie nicht der Adressat dieses E-Mails sind und das
Material von Ihrem Computer zu loeschen.
This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.
More information about the Mercurial
mailing list