]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/subversion/subversion/svn/schema/status.rnc
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / subversion / subversion / svn / schema / status.rnc
1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements.  See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership.  The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License.  You may obtain a copy of the License at
8 #
9 #   http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing,
12 # software distributed under the License is distributed on an
13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 # KIND, either express or implied.  See the License for the
15 # specific language governing permissions and limitations
16 # under the License.
17 #
18 #
19 # XML RELAX NG schema for Subversion command-line client output
20 # For "svn status"
21
22 # The DTD compatibility annotations namespace, used for adding default
23 # attribute values.
24 namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
25
26 include "common.rnc"
27
28 start = status
29
30 status = element status { (target | changelist)* }
31
32 target = element target { attlist.target, entry*, against? }
33 attlist.target &=
34   ## The target path.
35   attribute path { string }
36
37 changelist = element changelist { attlist.changelist, entry*, against? }
38 attlist.changelist &=
39   ## The changelist name.
40   attribute name { string }
41
42 ## Status information for a path under the target.
43 entry = element entry { attlist.entry, wc-status, repos-status? }
44 attlist.entry &=
45   ## Path inside the target.
46   attribute path { text }
47
48 ## Status of the entry in the working copy.
49 wc-status = element wc-status { attlist.wc-status, commit?, lock? }
50
51 attlist.wc-status &=
52   ## Item/text status.
53   attribute item {
54     "added" | "conflicted" | "deleted" | "external" | "ignored" |
55     "incomplete" | "merged" | "missing" | "modified" | "none" |
56     "normal" | "obstructed" | "replaced" | "unversioned"
57   },
58   ## Properties status.
59   attribute props { "conflicted" | "modified" | "normal" | "none" },
60   ## Base revision number.
61   attribute revision { revnum.type }?,
62   ## WC directory locked.
63   [ a:defaultValue = "false" ]
64   attribute wc-locked { "true" | "false" }?,
65   ## Add with history.
66   [ a:defaultValue = "false" ]
67   attribute copied { "true" | "false" }?,
68   # Item switched relative to its parent.
69   [ a:defaultValue = "false" ]
70   attribute switched { "true" | "false" }?,
71   ## Tree-conflict status of the item.
72   [ a:defaultValue = "false" ]
73   attribute tree-conflicted { "true" | "false" }?,
74   ## If root of a move-here, the local path to the move source.
75   attribute moved-from { text }?,
76   ## If root of a move-away, the local path to the move destination.
77   attribute moved-to { text }?
78
79 ## Status in repository (if --update was specified).
80 repos-status = element repos-status { attlist.repos-status, lock? }
81 attlist.repos-status &=
82   ## Text/item status in the repository.
83   attribute item {
84     "added" | "deleted" | "modified" | "replaced" | "none"
85   },
86   ## Properties status in repository.
87   attribute props { "modified" | "none" }
88
89 against = element against { attlist.against, empty }
90 attlist.against &=
91   ## Revision number at which the repository information was obtained.
92   attribute revision { revnum.type }