[PLUGIN] bzr uncommit updated

John A Meinel john at arbash-meinel.com
Mon Sep 26 02:20:58 BST 2005


Aaron Bentley wrote:
> John A Meinel wrote:
> 
>>>>Done now.  copy_multi_immutable will use hard links but fall back to
>>>>copying across devices or on Windows.
>>>
>>>
>>>Can you have it not do hard-links on Mac?
>>>Mac has hard-links, but the implementation is very poor. 
> 
> 
> Ugh, yes.  I'd forgotten about that.  I think I'll invert the test and
> only hard link on known-safe platforms.
> 
> Anyone know the sys.platform or platform.system() values for Linux and
> major Unices?
> 

Well, I know of "linux2", but I don't know the major unixes.

Though I'd be fine if you said:

if sys.platform not in ('win32', 'cygwin', 'darwin'):

And we can always expand that as we need to.

It might also be better to require a --link (or at least have a 
--no-link) option (possibly also a config entry).

Certainly we should avoid linking the working tree, since that is quite 
a bit more dangerous for end users.

> 
>>>Also, is this hard-linking to --basis or to the branch being pulled from
>>>   (or is it just wherever it can get the file)?
> 
> 
> It could be either, but if you specify a basis, the pulled branch is
> probably remote.  There is no need to specify a basis locally, as hard
> links will be used automatically.
> 
> Aaron

John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050925/af715d8a/attachment.pgp 


More information about the bazaar mailing list