[merge] bzr uses permissions of containing directory
Michael Ellerman
michael at ellerman.id.au
Fri Dec 16 07:31:19 GMT 2005
On Thu, 15 Dec 2005 16:05, John Arbash Meinel wrote:
> After much gnashing of teeth, I have updated the Transport interface,
> Branch itself, such that it know checks to see what the mode of '.bzr'
> is, and then uses that to determine the permissions for all files
> underneath.
> You can see my changes here:
> http://bzr.arbash-meinel.com/branches/bzr/permissions/
A few timings:
My branch only has 87 revisions, but lots of files. 20,848 weaves, 21,280
files under .bzr in total. It's currently not clean if that matters, 113
modified & 12 unknown.
concordia ~/src/work$ time bzr branch kexec/ kexec-branch
208.64user 28.50system 14:36.12elapsed 27%CPU (876 seconds)
concordia ~/src/work$ time bzr branch kexec/ kexec-branch
235.37user 30.72system 14:28.08elapsed 30%CPU (868 seconds)
concordia ~/src/work$ time ../bzr/permissions/bzr branch kexec/ kexec-branch
236.24user 32.79system 18:34.04elapsed 24%CPU (1114 seconds)
^^^^^^^^
concordia ~/src/work$ time ../bzr/permissions/bzr branch kexec/ kexec-branch
227.13user 30.86system 15:30.18elapsed 27%CPU (930 seconds)
concordia ~/src/work$ time ../bzr/permissions/bzr branch kexec/ kexec-branch
170.39user 24.43system 15:26.65elapsed 21%CPU (926 seconds)
Worst case it's 27% slower, best case it's only 5%. Not sure what accounts for
the 18:00 time?
As a comparison, cloning the same tree with git (it's versioned by both):
concordia ~/src/work$ /usr/bin/time git clone kexec/ kexec-branch
defaulting to local storage area
Packing 146363 objects
265.86user 15.55system 7:13.05elapsed 64%CPU (433 seconds)
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051216/eba428fb/attachment.pgp
More information about the bazaar
mailing list