place to store state

Steve Borho steve at ageia.com
Mon Aug 6 15:18:54 CDT 2007


On Monday 06 August 2007 12:56:22 am Brad Schick wrote:
> I'm working on a graphical extension for mercurial and would like to
> store a small amount of state info (window size, etc.) between
> invocations and across local repos. Anything like that exist already?
> hgrc doesn't seem like a good fit and I didn't find anything similar
> in hg's source. Just wanted to check before I add code to my
> extension.

Qct uses Qt's QSettings class to store data like that.  On Linux 
QSettings uses text files under ~/.config to store your data, while on 
Windows it uses the registry.

If you're using Qt, I recommend it.

-- 
Steve Borho (steve at ageia.com)
http://www.borho.org/~steve/steveAgeia.asc
Key fingerprint = 3D9C 67D5 F426 4322 075B  0795 C9B2 C3A0 97D0 C090


More information about the Mercurial mailing list