Accessing configuration of remote repositories
Matt Mackall
mpm at selenic.com
Wed Nov 28 14:27:28 CST 2007
On Wed, Nov 28, 2007 at 12:48:53AM -0500, Glenn Ammons wrote:
> This is a repeat of an email that I sent to the mercurial list last
> week; there were no replies so I thought I'd try here.
>
> I am writing an extension in which each Mercurial repository refers to
> another data store. When changes are pushed from Mercurial repository
> A to Mercurial repository B, I first want to push any additions to the
> store referred to by A to the store referred to by B. To do that, I
> need to know where A's store is and where B's store is.
>
> Right now, the location of the store is kept in an hgrc parameter.
> So, during a push from A to B, my extension needs to read the hgrc
> parameter for the remote repository B. I've been looking through the
> code and haven't been able to find a way to do that. Is there a way
> to read an hgrc parameter for a remote repository? If not, why not?
No; there can be things like passwords there.
> I'd also appreciate suggestions about other places to keep this
> information, so that it can be accessed remotely.
You could check in a map.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list