File: development-paths.texi

package info (click to toggle)
arch 1.0pre15-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 20,180 kB
  • ctags: 4,560
  • sloc: ansic: 64,410; sh: 29,168; lisp: 1,896; awk: 1,044; makefile: 484; sed: 26
file content (196 lines) | stat: -rw-r--r-- 3,558 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
@need 3200

@node Development Paths
@chapter Development Paths

An @code{arch} archive is organized around @geindex development paths
@dfn{development paths}.  Each
development path is a succession of revisions, each (usually)
differing from the previous revision by a simple patch.


Every development path has a project name with version number, such
as:

@example
@group
        hello--devo--1.0
@end group
@group
@end group
@end example

Project names were previously discussed (see @ref{The arch Global Name-space of Projects}).


As we'll see in the next chapter, each development path is further
subdivided into specific revisions, each having a @geindex patch level name
@dfn{patch level name},
as in these examples:

@example
@group
        hello--devo--1.0--patch-3
        hello--devo--1.0--patch-4
        hello--devo--1.0--patch-5
@end group
@group
@end group
@end example
@need 3200

@section Creating a Development Path

@geindex make-category

@geindex make-branch

@geindex make-version



Supposing that you have set your default archive, you can create a new
development path in three steps:

@example
@group
        % larch make-category CATEGORY-NAME
@end group
@group
@end group
@end example
@example
@group
        % larch make-branch BRANCH-NAME
@end group
@group
@end group
@end example
@example
@group
        % larch make-version VERSION-NAME
@end group
@group
@end group
@end example

@noindent
as in this example that creates the version @code{hello--devo--1.0}:

@example
@group
        % larch make-category hello
        % larch make-branch hello--devo
        % larch make-version hello--devo--1.0
@end group
@group
@end group
@end example

@noindent
and this example that creates @code{hello--1.0}:

@example
@group
        % larch make-category hello
        % larch make-branch hello
        % larch make-version hello--1.0
@end group
@group
@end group
@end example

Note that in the second example, the branch label is empty.




@need 3200

@section Examining an Archive

@geindex categories (the command)

@geindex branches (the command)

@geindex versions (the command)



You can review what's in an archive using the commands:

@example
@group
        % larch categories
                - print a list of categories
@end group
@group
@end group
@end example
@example
@group
        % larch branches CATEGORY-NAME
                - print a list of branches within a category
@end group
@group
@end group
@end example
@example
@group
        % larch versions BRANCH-NAME
                -print a list of versions within a branch
@end group
@group
@end group
@end example



@need 3200

@section Fully Qualified Version Names

@geindex fully qualified version name

@geindex version name, fully qualified



Every version is associated with a particular archive.  Ordinarilly,
if you write a simple version name, your default archive is presumed.
However, wherever a version name is called for, you can use a @geindex fully
qualified version name
@dfn{fully
qualified version name} of the form:

@example
@group
        ARCHIVE-NAME/VERSION-NAME
@end group
@group
@end group
@end example

@noindent
as in the example:

@example
@group
        joe.hacker@@gnu.org--test-archive/hello--devo--1.0
@end group
@group
@end group
@end example

That can be useful when operating on a remote archive that is not your
default archive.  For example, you could use the name in the example
to retrieve the latest revision from Joe Hacker's archive, in
preparation for creating a branch of that version in your local
archive.