You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Daniel Mescheder <il...@danielmescheder.de> on 2008/02/08 16:29:03 UTC

Schema for output of "svn status --xml"?

Hi,

I'd like to parse the output of "svn status --xml" within an 
application. Yet, I was not able to find any documentation or schema 
for the XML data returned by this command.
Could someone give me a hint where to look? As you can probably guess,
I'm not very eager to find it out by trying all possibilities.

SVN-Version:
svn, version 1.4.6 (r28521)
   compiled Feb  4 2008, 13:45:04

Thanks in advance!

Best regards,

Daniel

Fwd: Schema for output of "svn status --xml"?

Posted by Erik Huelsmann <eh...@gmail.com>.
Forwarding an RNG 'svn status' schema bugreport from users@:

---------- Forwarded message ----------
From: Daniel Mescheder <il...@danielmescheder.de>
Date: Feb 13, 2008 5:29 PM
Subject: Re: Schema for output of "svn status --xml"?
To: users@subversion.tigris.org


jeremy hinds wrote on Friday 08 February 2008:
> RELAX NG schemas ship with the subversion source at
> subversion-1.4.6/subversion/svn/schema/ .  I've never used any of
> them, but there are conversion tools listed at relaxng.org if you need
> a DTD or something like that instead.

Hi again,

I just wanted to add, that the schema file at
subversion-1.4.6/subversion/svn/schema/status.rnc is incomplete.
At least there is no entry for the item status "missing".

Corresponding file line 30:
 attribute item {
   "added" | "conflicted" | "deleted" | "ignored" | "modified" | "replaced"
   | "external" | "unversioned" | "incomplete" | "obstructed" | "normal"
   | "none"
 }

Expected:
 attribute item {
   "added" | "conflicted" | "deleted" | "ignored" | "modified" | "missing"
   | "replaced"  | "external" | "unversioned" | "incomplete" | "obstructed"
   |  "normal"  | "none"
 }

The "missing" attribute is really used:

Reproduce:
/tmp $ mkdir wc
/tmp $ svn co svn://localhost/ wc
A    wc/foo
Checked out revision 8990.
/tmp $ cd wc
$ svn stat --xml -v
[...]
<entry
  path="foo">
<wc-status
  props="none"
  item="normal"
  revision="8990">
<commit
  revision="3161">
<date>2008-02-09T10:48:12.821569Z</date>
</commit>
</wc-status>
</entry>
[...]
/tmp/wc $ rm -rf foo
/tmp/wc $ svn stat --xml -v
[...]
<entry
  path="foo">
<wc-status
  props="none"
  item="missing"
  revision="-1">
</wc-status>
</entry>
[...]

Best regards,
Daniel

Re: Schema for output of "svn status --xml"?

Posted by Daniel Mescheder <il...@danielmescheder.de>.
jeremy hinds wrote on Friday 08 February 2008:
> RELAX NG schemas ship with the subversion source at
> subversion-1.4.6/subversion/svn/schema/ .  I've never used any of
> them, but there are conversion tools listed at relaxng.org if you need
> a DTD or something like that instead.

Hi again,

I just wanted to add, that the schema file at 
subversion-1.4.6/subversion/svn/schema/status.rnc is incomplete.
At least there is no entry for the item status "missing".

Corresponding file line 30:
  attribute item {
    "added" | "conflicted" | "deleted" | "ignored" | "modified" | "replaced"
    | "external" | "unversioned" | "incomplete" | "obstructed" | "normal"
    | "none"
  }

Expected:
  attribute item {
    "added" | "conflicted" | "deleted" | "ignored" | "modified" | "missing"
    | "replaced"  | "external" | "unversioned" | "incomplete" | "obstructed" 
    |  "normal"  | "none"
  }

The "missing" attribute is really used:

Reproduce:
/tmp $ mkdir wc
/tmp $ svn co svn://localhost/ wc
A    wc/foo
Checked out revision 8990.
/tmp $ cd wc
$ svn stat --xml -v
[...]
<entry
   path="foo">
<wc-status
   props="none"
   item="normal"
   revision="8990">
<commit
   revision="3161">
<date>2008-02-09T10:48:12.821569Z</date>
</commit>
</wc-status>
</entry>
[...]
/tmp/wc $ rm -rf foo
/tmp/wc $ svn stat --xml -v
[...]
<entry
   path="foo">
<wc-status
   props="none"
   item="missing"
   revision="-1">
</wc-status>
</entry>
[...]

Best regards,
Daniel

Re: Schema for output of "svn status --xml"?

Posted by Daniel Mescheder <il...@danielmescheder.de>.
Am Friday 08 February 2008 schrieb jeremy hinds:
> On Feb 8, 2008 9:29 AM, Daniel Mescheder <il...@danielmescheder.de> 
wrote:
> > Hi,
> >
> > I'd like to parse the output of "svn status --xml" within an
> > application. Yet, I was not able to find any documentation or schema
> > for the XML data returned by this command.
> > Could someone give me a hint where to look? As you can probably guess,
> > I'm not very eager to find it out by trying all possibilities.
> >
> > SVN-Version:
> > svn, version 1.4.6 (r28521)
> >    compiled Feb  4 2008, 13:45:04
> >
> > Thanks in advance!
> >
> > Best regards,
> >
> > Daniel
>
> RELAX NG schemas ship with the subversion source at
> subversion-1.4.6/subversion/svn/schema/ .  I've never used any of
> them, but there are conversion tools listed at relaxng.org if you need
> a DTD or something like that instead.

RELAX NG does the job very well, thanks a lot!

Re: Schema for output of "svn status --xml"?

Posted by jeremy hinds <je...@gmail.com>.
On Feb 8, 2008 9:29 AM, Daniel Mescheder <il...@danielmescheder.de> wrote:
> Hi,
>
> I'd like to parse the output of "svn status --xml" within an
> application. Yet, I was not able to find any documentation or schema
> for the XML data returned by this command.
> Could someone give me a hint where to look? As you can probably guess,
> I'm not very eager to find it out by trying all possibilities.
>
> SVN-Version:
> svn, version 1.4.6 (r28521)
>    compiled Feb  4 2008, 13:45:04
>
> Thanks in advance!
>
> Best regards,
>
> Daniel
>

RELAX NG schemas ship with the subversion source at
subversion-1.4.6/subversion/svn/schema/ .  I've never used any of
them, but there are conversion tools listed at relaxng.org if you need
a DTD or something like that instead.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org