place to store state

Jens Alfke jens at mooseyard.com
Mon Aug 6 06:43:34 UTC 2007


On 5 Aug '07, at 10:56 PM, 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.

If the info is local and not per-repository, could you just store it  
wherever apps normally store preferences (a dot-prefixed file in the  
home directory, the Registry, ~/Library/Preferences...)?

I've been meaning to ask a similar question about info that _is_  
specific to a particular local repository. Is it kosher to put my own  
file into the ".hg" subdirectory? I'd give it a distinctive name to  
avoid conflicts.

--Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20070805/8f9631a2/attachment-0001.html>


More information about the Mercurial mailing list