Bazaar

Bazaar

 




Wiki Tools

  • Find Page
  • Recent Changes
  • Page History
  • Attachments

Differences between revisions 1 and 23 (spanning 22 versions)
Revision 1 as of 2007-09-01 23:06:03
Size: 71
Comment: Started :D
Revision 23 as of 2008-03-04 10:42:13
Size: 3968
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Commands to implement: ## page was renamed from bzr-xmloutput
This plugin adds an option (--xml) to generate XML output for builtins commands.
Line 3: Line 4:
 * bzr info
 * bzr plugins
 * bzr missing
=== Supported commands ===
 * log
 * status
 * annotate
 * missing
 * info
 * plugins
 * version

=== Download ===

Latest release - 0.4.2
 * [https://launchpad.net/bzr-xmloutput/trunk/0.4.2/+download/bzr-xmloutput-0.4.2.tar.gz Source Code Tarball]

Development source code:
{{{
bzr branch lp:bzr-xmloutput
}}}


=== Commands to implement: ===
 * tags?
 * testament?

== Roadmap ==

See ["XMLOutput/SprintNotes"]


== XML formats ==

=== Log ===
<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>Canonical.com Patch Queue Manager &lt;fake@no-mail.net&gt;</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/errors.py</file>
     </modified>
 </affected-files>
    <log>
<logs>}}}

=== Status ===

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">
   !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>}}}


=== Missing ===

missing: can contain: '''last_location''', '''extra_revisions''' and '''missing_revisions'''.

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

{{{<missing>
 <last_location>
  /Users/guillermo/Projects/BazaarEclipse/bzr-eclipse/trunk/
 </last_location>
 <extra_revisions size="1">
  <logs>
   <log>
    <revno>116</revno>
    <committer>
     Guillermo Gonzalez &lt;nospam@mail.com&gt;
    </committer>
    <branch-nick>quickdiff-integration</branch-nick>
    <timestamp>Fri 2007-12-21 19:34:45 -0300</timestamp>
    <message>* merge with quickdiff branch</message>
   </log>
  </logs>
 </extra_revisions>
</missing>}}}


=== Annotate ===

<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">
 <entry revno="1" author="argentina@gmail.com" date="20080303">This is a test file.</entry>
 <entry revno="6" author="guillo.gonzo@gmail.com" date="20070404"></entry>
 <entry revno="3" author="argentina@gmail.com" date="20080303">It has multiple lines...</entry>
 <entry revno="3" author="argentina@gmail.com" date="20080222">...just as an example :)</entry>
</annotation>}}}

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?

Roadmap

See ["XMLOutput/SprintNotes"]

XML formats

Log

<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>Canonical.com Patch Queue Manager <fake@no-mail.net></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/errors.py</file>

        </modified>

      </affected-files>

    <log>

<logs>}}}

Status

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">

      </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>}}}

Missing

missing: can contain: last_location, extra_revisions and missing_revisions.

extra_revisions and missing_revision: contains a <logs> element.

{{{<missing>

  • <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>

        </log>

      </logs>

    </extra_revisions>

</missing>}}}

Annotate

<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">

</annotation>}}}