]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/subversion/subversion/svn/schema/info.rnc
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / subversion / subversion / svn / schema / info.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 info"
21
22 include "common.rnc"
23
24 start = info
25
26 info = element info { entry* }
27
28 entry =
29   element entry {
30     attlist.entry, url?, relative-url?, repository?, wc-info?,
31     commit?, conflict?, lock?, tree-conflict?
32   }
33 attlist.entry &=
34   ## Local path.
35   attribute path { string },
36   ## Path type.
37   attribute kind { "file" | "dir" },
38   ## Revision number of path/URL.
39   attribute revision { revnum.type }
40
41 ## URL of this item in the repository.
42 url = element url { xsd:anyURI }
43
44 ## Repository relative URL (^/...) of this item in the repository.
45 relative-url = element relative-url { string }
46
47 ## Information of this item's repository.
48 repository = element repository { root?, uuid? }
49
50 ## URL of the repository.
51 root = element root { xsd:anyURI }
52
53 ## UUID of the repository.
54 uuid = element uuid { uuid.type }
55
56 ## Info in the working copy entry.
57 wc-info =
58   element wc-info {
59     wcroot-abspath?,
60     schedule?,
61     changelist?,
62     copy-from-url?,
63     copy-from-rev?,
64     depth?,
65     text-updated?,
66     prop-updated?,
67     checksum?,
68     moved-from?,
69     moved-to?
70   }
71
72 wcroot-abspath = element wcroot-abspath { string }
73
74 schedule =
75   element schedule { "normal" | "add" | "delete" | "replace" | "none" }
76
77 ## The name of the changelist that the path may be a member of.
78 changelist = element changelist { string }
79
80 copy-from-url = element copy-from-url { xsd:anyURI }
81
82 copy-from-rev = element copy-from-rev { revnum.type }
83
84 # Date when text was last updated.
85 text-updated = element text-updated { xsd:dateTime }
86
87 # Date when properties were last updated.
88 prop-updated = element prop-updated { xsd:dateTime }
89
90 checksum = element checksum { md5sum.type }
91
92 moved-from = element moved-from { string }
93
94 moved-to = element moved-to { string }
95
96 conflict =
97   element conflict {
98     prev-base-file,
99     prev-wc-file?,
100     cur-base-file,
101     prop-file?
102   }
103
104 ## Previous base file.
105 prev-base-file = element prev-base-file { string }
106
107 ## Previous WC file.
108 prev-wc-file = element prev-wc-file { string }
109
110 ## Current base file.
111 cur-base-file = element cur-base-file { string }
112
113 ## Current properties file.
114 prop-file = element prop-file { string }
115
116 ## Depth of this directory, always "infinity" for non-directories
117 depth = element depth { "infinity" | "immediates" | "files" | "empty" }
118
119 tree-conflict =
120   element tree-conflict { attlist.tree-conflict }
121
122 attlist.tree-conflict &=
123   ## Local path to the original victim.
124   attribute victim { string },
125   ## Path type.
126   attribute kind { "file" | "dir" },
127   ## Operation causing the tree conflict.
128   attribute operation { "update" | "merge" | "switch" },
129   ## Operation's action on the victim.
130   attribute action { "edit" | "add" | "delete" | "replace" },
131   ## Local reason for the conflict.
132   attribute reason { "edit" | "obstruction" | "delete" | "add" |
133                      "missing" | "unversioned" | "replace" |
134                      "moved-away" | "moved-here" }