Bazaar

Bazaar

 




Wiki Tools

  • Find Page
  • Recent Changes
  • Page History
  • Attachments

Differences between revisions 14 and 15
Revision 14 as of 2008-03-01 19:52:46
Size: 515
Comment: new release (fix 'missing --xml')
Revision 15 as of 2008-03-03 14:34:55
Size: 2305
Comment: log and status xml format description
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:


== XML formats ==

=== Log ===

<logs>: contains <log> entries
<log>: represents a commit it 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>131</revno>
  <committer>
   Guillermo Gonzalez &lt;guillo.gonzo.nospamm AT gmail DOT com&gt;
  </committer>
  <branch-nick>trunk</branch-nick>
  <timestamp>Sun 2008-03-02 02:19:55 +0100</timestamp>
  <message>
   * fix BazaarClientException wrapping * add a check for null
   workspace root in InventoryCommand.getResources()
  </message>
 </log>
<logs>


=== Status ===

status: it have one attribute: workingtree_root, which is the paath to the workingtree root. And 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">
   BazaarClient/src/main/org/vcs/bazaar/client/commandline/CommandLineClient.java
  </file>
 </modified>
 <unknown>
  <file>
   BazaarClient/src/main/org/vcs/bazaar/client/IPlugin.java
  </file>
  <file>
   BazaarClient/src/main/org/vcs/bazaar/client/commandline/commands/Plugins.java
  </file>
 </unknown>
</status>

This plugin adds an option (--xml) to generate XML output for builtins commands.

Supported commands

  • log
  • status
  • annotate
  • missing
  • info
  • plugins
  • version

Download

Latest release - 0.4.2

Development source code:

bzr branch lp:bzr-xmloutput

Commands to implement:

  • tags?
  • testament?

XML formats

Log

<logs>: contains <log> entries <log>: represents a commit it 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>131</revno> <committer>

      • Guillermo Gonzalez <guillo.gonzo.nospamm AT gmail DOT com>

      </committer> <branch-nick>trunk</branch-nick> <timestamp>Sun 2008-03-02 02:19:55 +0100</timestamp> <message>

      </message>

    </log>

<logs>

Status

status: it have one attribute: workingtree_root, which is the paath to the workingtree root. And 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">

      • BazaarClient/src/main/org/vcs/bazaar/client/commandline/CommandLineClient.java

      </file>

    </modified> <unknown>

    • <file>

      • BazaarClient/src/main/org/vcs/bazaar/client/IPlugin.java

      </file> <file>

      • BazaarClient/src/main/org/vcs/bazaar/client/commandline/commands/Plugins.java

      </file>

    </unknown>

</status>