Ubuntu One

John Arbash Meinel john at arbash-meinel.com
Thu May 26 08:22:36 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/26/2011 09:25 AM, David Muir wrote:
> I came across this blog post about hosting bzr branches via Dropbox:
> http://marcioandreyoliveira.blogspot.com/2009/05/get-your-own-bazaar-hosting-service-for.html
> 
> Will all the security hoopla around Dropbox, it got me wondering about
> Ubuntu One and whether it would work just as well there.
> 
> Has anybody been doing this? Are there any caveats? What happens if two
> users sharing the same repo, update it at the same time? Would the repo
> easily get corrupted?
> 
> My gut instinct would be that it might work reasonably well for small
> repos with minimal activity, but maybe not larger ones with lots of
> commits/pushes?
> 
> Cheers,
> David
> 
> 

So the main issue is that while updates to a bzr repository are atomic
(they are not visible to other users of the repo until all of it is
available), the syncing of Ubuntu One knows nothing of the file ordering
necessary to preserve this. (put files into .bzr/repository/packs before
you update .bzr/repository/pack-names)

And certainly, you can't simply copy the files in one repository into
another. (You have to merge the .bzr/pack-names file at a minimum.)

It would be interesting if Ubuntu One had a hook we could use, to tell
it what ordering to use.

But consider it the same as having an sqlite or postgres database. You
can't just rsync 2 databases together and have them stay consistent.

It certainly would be a neat addition to Ubuntu One, though.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3eDcwACgkQJdeBCYSNAAOJ2ACbBsdA7ZxZ8heY1xi88NVE6nxo
jKIAn0qdbITiaHNvmgBkhrT6TNV+TPRF
=dNmS
-----END PGP SIGNATURE-----



More information about the bazaar mailing list