Hg identify on multiple repos in single call?

Eric Pyle eric_pyle at sil.org
Tue Mar 11 21:00:54 CDT 2014


I've looked into reading .hg/dirstate per your recommendation. However, I
not only need a fast way to know the parent id of the working directory,
but also whether or not anything has been modified. (I see that even the
*vcprompt* code calls *hg status* to determine this.)

Eric


On Tue, Mar 11, 2014 at 11:02 AM, Yuya Nishihara <yuya at tcha.org> wrote:

> (Please CC to the list)
>
> On Mon, 10 Mar 2014 23:59:46 -0500, Eric Pyle wrote:
> > Thanks, that looks promising! Any idea how long hg identify would take on
> > the same configuration? I'd like to estimate the time savings.
>
> You can guess it by "time hg id" - "time hg version".
>
> > > On Fri, 7 Mar 2014 22:58:40 -0600, Eric Pyle wrote:
> > > > I'm trying to optimize the performance of calling hg 'identify'
> across
> > > 100+
> > > > repos.
>
> BTW, if the repository is local, it will be much faster to read
> .hg/dirstate
> directly.  See vcprompt for example.
>
> http://hg.gerg.ca/vcprompt/file/3babbe517e2c/src/hg.c
>
> Regards,
>



-- 
Eric Pyle
Dallas, TX
SIL - Language Software Developer
Skype: eric.d.pyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20140311/522594c5/attachment.html>


More information about the Mercurial-devel mailing list