logo       

Re: [darcs-users] Re: Suggestion: track patch origin metadata (patch): msg#00083

Subject: Re: [darcs-users] Re: Suggestion: track patch origin metadata (patch)
On Sat, Oct 23, 2004 at 12:45:02PM -0400, David Roundy wrote:
> > I think there should be a dual --enable option or something to be able
> > to manually override defaults, but let's see if this will be accepted
> > into darcs at all.
> 
> I'm not so sure.  I like the idea that --disable can be trusted to actually
> disable the command.  So, for example, if you could keep a user from
> modifying _darcs/prefs/defaults, you could disable commands you don't want
> to allow and then use sudo to let him run darcs, and not worry about him
> using --enable to override your policy.

On the other hand, you may want to restrict yourself but also want to be
able to bypass the restrictions occasionally. I am not sure that
modifying defaults every time is a good solution here.

> Perhaps we could add another overrideable option... I envision something
> like --deprecate (only that's a bad name...).  I imagine an option that
> would cause darcs to print out a warning and prompt if you really want to
> go through with it.

Hmmm... maybe soft-disable, disallow, protest, complain, boycott ...?

> Another idea is that we could add a string option to the disable flag,
> which would be a message to be printed out.  So then defaults would read:
> 
> unpull disable David doesn't allow unpulling because it's bad!

With string argument, the option could even be named 'fail'.

> > Also, I am not sure it should be listed in --help, because it is not
> > particularly useful outside of _darcs/prefs/defaults.
> 
> Agreed.  Definitely doesn't belong in --help... although I'm not sure I
> like the precedent of accepting flags that aren't listed in --help.  I hope
> you appreciate my decisiveness... :)

:)

I am happy to remove it from --help. The code for adding disable to
options list looks ugly now.

> > Moreover, it is probably not useful in commands that can be used outside
> > of a repository, like get, etc.
> 
> Well, if could be stuck in ~/.darcs/defaults, although I'm not sure why
> you'd ever want to disable initialize...

Ah, yes, I forgot about ~/.darcs. Anyway, I think it's better to allow
disabling of any command - this will keep the code simple and can't see
any real disadvantages.

> > Every {\tt COMMAND} accepts the \verb!--disable! option, which can be
> > used in \verb!_darcs/prefs/defaults! to disable some commands in the
> > repository. This can be helpful if you want to protect the repository
> > from accidential use of advanced commands like unpull, unrecord or
> > rerecord.
> 
> This documentation is nice, as far as it goes, but I think it would a good
> idea to also add a paragraph in configuring_darcs.tex, since that's where
> people will be looking when they want to find out how to set up their
> repositories.

OK, I'll see if I can write something that fits there.

Treat the patch I sent you as a proposal and don't include it in darcs.
I will make a new patch "from scratch". Or is it against darcs'
philosophy? It could cause conflicts if someone decided to try my patch
before it is accepted into official darcs...

Best regards,
Tom

-- 
.signature: Too many levels of symbolic links


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe