Re: |hg status| on many/all files in filesystem

Todd Whiteman <[email protected]> Tue, 10 Aug 2010 13:44:39 -0700
Newsgroups gmane.comp.ide.komodo.general
Message-ID <[email protected]>
On 10-08-08 06:33 PM, Myk Melez wrote:
>    Lately (for the last few months, in fact, although I only bothered to
> track it down recently), I've been noticing long-running and
> CPU-intensive Mercurial processes started by Komodo that appear to be
> checking the status of a large swath (perhaps all) of my filesystem,
> including files that are not in Mercurial repositories.
>
> ps reports the command being run as |/usr/bin/python /usr/bin/hg status
> -A -X */** .|, the parent process is Komodo, and strace on the process
> shows system calls like:
>
>       open("/home/myk/.ccache/6/4", O_RDONLY|O_LARGEFILE) = 3
>
> I'm running Komodo version 5.2.4, build 37659, platform
> linux-libcpp6-x86. I've been meaning to try out the latest 6.0 beta but
> haven't done so yet, so I don't know how things look there.
>
> Is this intentional, a bug, or a misconfiguration on my part? In
> preferences, Source Code Control>  Mercurial>  Mercurial Integration is
> checked, as is "Check for status changes from outside of Komodo" (Check
> every [15] minutes).

Hi Myk,

That is Komodo's hg background status checking, which fires off hg 
process(es) everytime the Komodo window is focused (or when the 15 min 
timeout fires).

Komodo is set to check the hg status for all opened files in Komodo 
(including visible project files in Komodo), but a hg process is only 
launched when there is a parent ".hg" directory for the file in 
question. The process is as you describe 'hg status -A -X "*/**" .'

The process shouldn't take too long to complete, though if you have a 
huge hg repository it could get slow (for me the first check of the base 
Mozilla directory takes around 15 seconds, with subsequent checks only a 
second or two).

Note: The '-X "*/**"' is a mercurial feature to filter out sub-directories.

Cheers,
Todd
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss