Accessing configuration of remote repositories

Glenn Ammons ammons at us.ibm.com
Tue Nov 27 23:48:53 CST 2007


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?
I'd also appreciate suggestions about other places to keep this
information, so that it can be accessed remotely.

Thanks.
--glenn


More information about the Mercurial-devel mailing list