place to store state

Matt Mackall mpm at selenic.com
Mon Aug 6 14:58:06 CDT 2007


On Sun, Aug 05, 2007 at 11:43:34PM -0700, Jens Alfke wrote:
> 
> 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.

Yes. Please use an <extension> prefix or directory to make it clear
who's to blame..

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list