Bazaar TFS plugin 0.1 released
Jelmer Vernooij
jelmer at samba.org
Sun Aug 15 23:58:15 BST 2010
On Mon, 2010-08-16 at 10:25 +1200, John Barstow wrote:
> On Mon, Aug 16, 2010 at 9:17 AM, Jelmer Vernooij <jelmer at samba.org> wrote:
> > This was buried in my backlog but somebody just pointed it out to me on
> > IRC. Very nice!
> Thanks. TFS has some pretty horrible ideas about how things should work.
:-)
> > If you have suggestions on how to make it easier to support foreign
> > branch plugins, please let us know.
>
> I'm writing some documentation that should make that easier, will post
> to the list whenever I get a chance to finish it.
>
> Two things I'm struggling with:
>
> 1) I'd like to store the TFS revid as extra metadata (the way svn
> revids are stored). I understand I can just annotate the revision to
> store it, what confuses me is how it actually gets displayed in bzr
> log. I thought I had this figured out at one point but I lost my way
> when I looked at the code again.
If you register a subclass of ForeignVcs() (see bzrlib.foreign), you can
override the method on that class that can display foreign revision
identifiers (show_foreign_revid).
If you derive revision objects you return from
bzrlib.foreign.ForeignRevision then "bzr log" will automatically call
your show_foreign_revid function.
> 2) It's increasingly clear I really need to build a persistent cache;
> is there any part of this process that should be abstracted across
> plugins?
I'd like to standardize on using Bazaar pack files for this, as the
alternatives that are in use by bzr-git/bzr-hg/bzr-svn either require
extra dependencies (tdb, not available on windows) or have other
problems (sqlite, doesn't allow concurrency).
John was working on refactoring some of the pack management code; once
that lands I'm planning to look into using Bazaar pack files in
bzr-svn/bzr-hg/bzr-git.
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20100816/a2bd42ac/attachment-0001.pgp
More information about the bazaar
mailing list