monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Re: monotone ls unknown


From: Nathaniel Smith
Subject: Re: [Monotone-devel] Re: monotone ls unknown
Date: Thu, 18 Dec 2003 14:31:55 -0800
User-agent: Mutt/1.5.4i

On Thu, Dec 18, 2003 at 04:55:18PM -0500, graydon hoare wrote:
> Peter Simons wrote:
> 
> >   Is there any other way to place this file under
> >   version control?
> 
> nothing in MT can be under version control, by design. I suppose if you 
> really want to version your hooks, you could have MT/monotonerc call
> loadfile("versioned-hooks.lua"), and go from there. I hadn't really 
> thought of this before. generally I don't like the idea of monotone 
> executing hook code from its own database or working copy. it's too 
> close to a network-attack scenario for my taste.

Possibly there are specific hooks that one wants to version and the
proper solution here is to define on a case-by-case some data files in
the working copy, and then have the default hooks parse them.

(So the way to store the ignored file rules in the repository would be
to create something like .cvsignore files, and then have the default
should_I_ignore_this_file() hook read and parse it.)

A possible problem is that I'm not sure whether hooks have any
reasonable way to read the working copy...

-- Nathaniel

-- 
"Lull'd in the countless chambers of the brain,
Our thoughts are link'd by many a hidden chain:
Awake but one, and lo! what myriads rise!
Each stamps its image as the other flies"
  -- Ann Ward Radcliffe, The Mysteries of Udolpho




reply via email to

[Prev in Thread] Current Thread [Next in Thread]