Reloading dirstate

Matt Mackall mpm at selenic.com
Mon Jul 16 20:10:52 CDT 2007


On Mon, Jul 16, 2007 at 04:51:50PM -0700, Brad Schick wrote:
> I'm working on an extension that will show repository status (among
> other things) in a GUI based on in a gtk+. The UI has a refresh
> button, but it doesn't yet work because once localrepo loads dirstate,
> it stays in memory.
> 
> When the UI needs to refresh, is the best way to handle this with:
> 
>     repo.dirstate.invalidate()

That should be fine.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list