[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: Daniel Mescheder <ilations_at_danielmescheder.de>
Date: Wed, 13 Feb 2008 17:29:18 +0100

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

Received on 2008-02-13 17:31:13 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.