Wiki Tools

  • Find Page
  • Recent Changes
  • Page History
  • Attachments

Differences between revisions 29 and 30
Revision 29 as of 2008-08-08 04:51:03
Size: 5487
Comment: fix wrong tarball url
Revision 30 as of 2008-08-25 03:58:31
Size: 5486
Comment: update for 0.6.0 release
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
Latest release - 0.5.0
 * [ Source Code Tarball]
Latest release - 0.6.0
 * [ Source Code Tarball]

This plugin adds an option (--xml) to log and provides an xml version of some builtinss commands that generate XML output. Also it provides a xmlrpc service

Supported commands

  • log
  • xmlstatus
  • xmlannotate
  • xmlmissing
  • xmlinfo
  • xmlplugins
  • xmlversion
  • xmlls
  • start-xmlrpc
    • this starts the xmlrpc service, that provides the following functions:
      • run_bzr: allow to execute any bzr command
      • run_bzr_xml: similar to run_bzr, but report errors in xml format
      • search: provides integration with bzr-search (if it's available)


Latest release - 0.6.0

Previous series - 0.4.x


bzr branch lp:bzr-xmloutput

0.4.x series: 
bzr branch lp:bzr-xmloutput/0.4

Commands to implement:

  • tags?
  • testament?


See ["XMLOutput/SprintNotes"]

XML formats


<logs>: contains <log> entries

<log>: represents a commit which can contain: revno, revisionid, committer, branch-nick, timestamp, message, merge, affected-files.

<merge>: contains <log> entries.

<affected-files>: can contain any of the elements present in <status>

example: {{{<logs>

  • <log>

    • <revno>2872</revno> <committer> Patch Queue Manager <></committer> <branch-nick>+trunk</branch-nick> <timestamp>Fri 2007-09-28 05:14:35 +0100</timestamp> <message>(robertc) Add bzrlib.errors.InternalBzrError. (Robert Collins)</message> <affected-files>

      • <modified>

        • <file>NEWS</file> <file>bzrlib/</file>






<status>: it has one attribute: workingtree_root, which is the path to the workingtree root. It can contain: modified, unknown, renamed, kind-changed, removed, conflicts, added.

<modified>, <unknown>, <renamed>, <kind-changed>, <removed>, <conflicts>, <added>: contain directory and/or file elements.

<file>: contains the relative path to the file, and can contain the following attributes: oldpath, oldkind and newkind, fid.

<directory>: contains the relative path to the directory, and can contain the following attributes: oldpath, oldkind and newkind, suffix.

{{{<status workingtree_root="/Users/guillermo/Projects/BazaarEclipse/bzr-eclipse/trunk/">

  • <modified>

    • <file fid="commandlineclient.ja-20070416055005-sc8qpmryqhgx5f65-24">


    </modified> <unknown>

    • <file>!BazaarClient/src/main/org/vcs/bazaar/client/</file> <file>!BazaarClient/src/main/org/vcs/bazaar/client/commandline/commands/</file>




<missing>: can contain: <last_location>, <extra_revisions> and <missing_revisions>.

<extra_revisions> and <missing_revision>: contains a <logs> element.


  • <last_location>

    • /Users/guillermo/Projects/BazaarEclipse/bzr-eclipse/trunk/

    </last_location> <extra_revisions size="1">

    • <logs>

      • <log>

        • <revno>116</revno> <committer>

          </committer> <branch-nick>quickdiff-integration</branch-nick> <timestamp>Fri 2007-12-21 19:34:45 -0300</timestamp> <message>* merge with quickdiff branch</message>






<annotation>: It has two attributes: workingtree_root, which is the path to the workingtree root, and file, which is the file being annotated. <entry>: Each represents a line. It has revno, author and date as attributes, and contains the text as a value.

{{{<annotation workingtree-root="/home/beuno/test_project/" file="test_file">



<info> is the container for the information provided

<layout> displays the current layout

<formats> contains the formats the current branch has, <format> contains the name of the storage format

<location> can contain <shared_repository>, <repository_branch> and/or <branch_root>. These represent paths or URLs.

<related_branches> contains <push_branch> and <parent_branch>. These represent paths or URLs.

Example output: {{{<info>

  • <layout>Repository tree</layout> <formats>

    • <format>pack-0.92</format>

    </formats> <location>

    • <shared_repository>/home/beuno/test_project</shared_repository> <repository_branch>.</repository_branch>

    </location> <related_branches>