Re: monotone suppresses .svn directories.

Stephen Leake <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
Richard Levitte <[email protected]> writes:

> In message <[email protected]> on Tue, 29 Nov 2011 11:24:37 -0500, Hendrik Boom <[email protected]> said:
>
> hendrik> On Tue, Nov 29, 2011 at 02:28:52AM -0500, Stephen Leake wrote:
> hendrik> > Hendrik Boom <[email protected]> writes:
> hendrik> > 
> hendrik> > > How can I do the recursive mtn add and suppress the .svn suppression?
> hendrik> > 
> hendrik> > .svn is in the standard Lua function 'ignore_file'; you can override
> hendrik> > that function definition in your ~/.monotone/monotonerc
> hendrik> 
> hendrik> Except I might still want to not override it when I'm working on other 
> hendrik> projects.  Is there some per-project or similar way of providing lua 
> hendrik> function?  Shoud there be?
>
> _MTN/monotonerc (see http://www.monotone.ca/docs/Lua-Reference.html#rcfiles)
>
> However, that means that everyone who shares this particular project
> must maintain their respective copy of that file, which is a bit dumb
> in this case...

If there was a way to get the workspace directory from a Lua function (I
don't see 'cwd' or equivalent), you could use "if cwd = <project
using .svn> then ..." in ~/.monotone/monotonerc

-- 
-- Stephe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.