This patch should fix this problem with the schema for
'item="missing"'. In "subversion/svn/status.c", it seems to indicate
that "merged" is also a possible item value. But I could not find any
information about what that means, so I did not add it to the schema.
[[[
Add missing value to wc-status "item" attribute.
* subversion/svn/schema/status.rnc: include "missing" as a possible
wc-status item= value.
Found By: Daniel Mescheder
Patch By: Jeremy Hinds
]]]
Index: subversion/svn/schema/status.rnc
===================================================================
--- subversion/svn/schema/status.rnc (revision 29349)
+++ subversion/svn/schema/status.rnc (working copy)
@@ -35,7 +35,7 @@
attribute item {
"added" | "conflicted" | "deleted" | "ignored" | "modified" | "replaced"
| "external" | "unversioned" | "incomplete" | "obstructed" | "normal"
- | "none"
+ | "none" | "missing"
},
## Properties status.
attribute props { "conflicted" | "modified" | "normal" | "none" },
2008/2/13 Erik Huelsmann <ehuels_at_gmail.com>:
> Forwarding an RNG 'svn status' schema bugreport from users@:
>
>
>
> ---------- Forwarded message ----------
> From: Daniel Mescheder <ilations_at_danielmescheder.de>
> Date: Feb 13, 2008 5:29 PM
> Subject: Re: Schema for output of "svn status --xml"?
> To: users_at_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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: dev-help_at_subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-02-14 22:03:12 CET