[PATCH 2 of 3 RFC] flags: introduce a command for manipulating file flags (issue2020)
Matt Mackall
mpm at selenic.com
Fri Jul 8 16:17:55 EDT 2016
On Wed, 2016-07-06 at 22:35 -0400, Matt Harbison wrote:
> On Wed, 06 Jul 2016 21:46:48 -0400, timeless <timeless at gmail.com> wrote:
>
> >
> > so, we could do:
> >
> > hg chmod -flag +executable paths
> >
> > It could also be done using a command other than `chmod` once you
> > switch to using `-flag` (or similar) as the flag.
> >
> > In this model, you could also support octal as the parser would come
> > from `-flag` instead of having to explain to the command parser that
> > you have arbitrary arguments that are either files or attributes.
> Interesting idea. I wish it were less verbose, but I don't have a better
> idea.
>
> The octal idea is interesting too, but since Mercurial really only tracks
> a single x-bit and then turns them on for each r-bit (see
> posix.setflags()),
Yeah, we should only allow Mercurial's own high-level 'x' and 'l' flags.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list