access control features for version control systems

Martin Pool mbp at sourcefrog.net
Thu Mar 24 04:24:22 GMT 2005


Hi Dan,

By the way, there is now a mailing list.

Dan Nicolaescu wrote:
> Martin Pool <mbp at sourcefrog.net> writes:
>
>   > Dan Nicolaescu wrote:
>   >
>   > > IMHO the default should be that when doing "bzr get" the mtime should
>   > > be set to the mtime the files had when doing "bzr commit".
>   > > Why? For consistency with "tar" and "cvs".
>   >
>   > Interesting point -- and that would imply it should be a per-file mtime,
>   > not just the time of the changeset.  OK, noted.
>
> Right, it should be per file.
> There's another piece of metadata that IMHO should be per file:
> permissions.
>
> Here's an example why: (I assume that the bzr-0.0.0.69.tgz snapshot was
> created using "bzr export"), the "bzr" "setup.py" files are not
> executable:
>
> tar -tzvf bzr-0.0.0.69.tgz bzr-0.0.0.69/bzr
> -rw-r--r-- mbp/mbp         919 2005-03-22 04:37:54 bzr-0.0.0.69/bzr

Good point.

I am planning to just version the execute bit, though, not all the
permissions.  I think whether something is group-writable or not is more
a property of how the checkout will be used than the source.

There are exceptions, such as when managing /etc, but they should
perhaps be handled as exceptions.

> I don't know where is implementing support for symlinks in your
> priority list, but IMHO it is one item that has a very good
> effort/impact ratio (given that most VC systems don't support
> symlinks).

About midway down teh list.

> Now a little patch (this is my first line of python code ever :-)
> When adding a .bzrignore file the defaults ignore patterns are
> not used anymore. The .cvsignore behavior is that the contents of
> .cvsignore are added to the default pattern.

I would do this, but then there is no way to undo the default patterns,
which people might sometimes want to do.  (Or would they?  I suppose if
the defaults are conservative there might be no need.)

So what I had in mind was to automatically create .bzrignore containing
some defaults when initializing a branch.  Yet that is unsatisfying in
other ways.

--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050324/62f732dc/attachment.pgp 


More information about the bazaar mailing list