user files in branch/checkout/repositories

Robert Collins robertc at robertcollins.net
Fri Jan 27 04:01:03 GMT 2006


On Thu, 2006-01-26 at 21:38 -0600, John A Meinel wrote:


> Well, so far we have taken to use the 'x-' prefix to mean it is
> unofficial. I don't know if it is good or bad, but it seems a reasonable
> way to distinguish and prevent collisions.

ok, so lets mandate - an implicit x- on registration, we never use that
for 'official' stuff.

> > 
> > One approach to the latter problem is to require registering them:
> > 
> >>>> checkout.get_user_file('shelf')
> > ...
> > UnregisteredFile: shelf
> >>>> checkout.register_file('shelf', preserve_clone=True,
> > preserve_upgrade=True)
> >>>> checkout.get_user_file('shelf')
> > .file object.
> > 
> > (implicit registration is not as clean IMO though it could be done).
> > 
> > This would allow upgrades and clones to copy such files around.
> > 
> > It does not address possible conflicts with names we might choose(we can
> > punt on this), nor does it address whether its a reasonable burden to
> > place on the objects.
> > 
> > Its obviously trivial for checkout, less so for branch, and IMO non
> > trivial for repositories.
> > 
> > Rob
> 
> There have been a few things that have been implemented by plugins that
> wouldn't really be possible without some sort of per-foo storage. Tags,
> rsync pull/push, etc.

well, depends which tags implmentation.... and branch formats are
-nearly- pluggable, which opens a whole new range of options


> I would really like to keep something available, since it can be very
> useful. I think explicit registration is reasonable. It does let you do
> stuff like mark whether the file should be preserved or not.
> 
> +1 from me.

Ok, I'll add this as part of branch-formats part two: making upgrade
scale.

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060127/0654f215/attachment.pgp 


More information about the bazaar mailing list