##// END OF EJS Templates
glossary: add entry for "Branch, inactive"
Martin Geisler -
r11911:528ff761 stable
parent child Browse files
Show More
@@ -1,357 +1,368
1 1 Ancestor
2 2 Any changeset that can be reached by an unbroken chain of parent
3 3 changesets from a given changeset. More precisely, the ancestors
4 4 of a changeset can be defined by two properties: a parent of a
5 5 changeset is an ancestor, and a parent of an ancestor is an
6 6 ancestor. See also: 'Descendant'.
7 7
8 8 Branch
9 9 (Noun) A child changeset that has been created from a parent that
10 10 is not a head. These are known as topological branches, see
11 11 'Branch, topological'. If a topological branch is named, it becomes
12 12 a named branch. If a topological branch is not named, it becomes
13 13 an anonymous branch. See 'Branch, anonymous' and 'Branch, named'.
14 14
15 15 Branches may be created when changes are pulled from or pushed to
16 16 a remote repository, since new heads may be created by these
17 17 operations. Note that the term branch can also be used informally
18 18 to describe a development process in which certain development is
19 19 done independently of other development.This is sometimes done
20 20 explicitly with a named branch, but it can also be done locally,
21 21 using bookmarks or clones and anonymous branches.
22 22
23 23 Example: "The experimental branch".
24 24
25 25 (Verb) The action of creating a child changeset which results in
26 26 its parent having more than one child.
27 27
28 28 Example: "I'm going to branch at X".
29 29
30 30 Branch, anonymous
31 31 Every time a new child changeset is created from a parent that is not
32 32 a head and the name of the branch is not changed, a new anonymous
33 33 branch is created.
34 34
35 35 Branch, closed
36 36 A named branch whose branch heads have all been closed.
37 37
38 38 Branch, default
39 39 The branch assigned to a changeset when no name has previously been
40 40 assigned.
41 41
42 42 Branch head
43 43 See 'Head, branch'.
44 44
45 Branch, inactive
46 If a named branch has no topological heads, it is considered to be
47 inactive. As an example, a feature branch becomes inactive when it
48 is merged into the default branch. The :hg:`branches` command
49 shows inactive branches by default, though they can be hidden with
50 :hg:`branches --active`.
51
52 NOTE: this concept is deprecated because it is too implicit.
53 Branches show now be explicitly closed using :hg:`commit
54 --close-branch` when they are no longer needed.
55
45 56 Branch, named
46 57 A collection of changesets which have the same branch name. By
47 58 default, children of a changeset in a named branch belong to the
48 59 same named branch. A child can be explicitly assigned to a
49 60 different branch. See :hg:`help branch`, :hg:`help branches` and
50 61 :hg:`commit --close-branch` for more information on managing
51 62 branches.
52 63
53 64 Named branches can be thought of as a kind of namespace, dividing
54 65 the collection of changesets that comprise the repository into a
55 66 collection of disjoint subsets. A named branch is not necessarily
56 67 a topological branch. If a new named branch is created from the
57 68 head of another named branch, or the default branch, but no
58 69 further changesets are added to that previous branch, then that
59 70 previous branch will be a branch in name only.
60 71
61 72 Branch tip
62 73 See 'Tip, branch'.
63 74
64 75 Branch, topological
65 76 Every time a new child changeset is created from a parent that is
66 77 not a head, a new topological branch is created. If a topological
67 78 branch is named, it becomes a named branch. If a topological
68 79 branch is not named, it becomes an anonymous branch of the
69 80 current, possibly default, branch.
70 81
71 82 Changelog
72 83 A record of the changesets in the order in which they were added
73 84 to the repository. This includes details such as changeset id,
74 85 author, commit message, date, and list of changed files.
75 86
76 87 Changeset
77 88 A snapshot of the state of the repository used to record a change.
78 89
79 90 Changeset, child
80 91 The converse of parent changeset: if P is a parent of C, then C is
81 92 a child of P. There is no limit to the number of children that a
82 93 changeset may have.
83 94
84 95 Changeset id
85 96 A SHA-1 hash that uniquely identifies a changeset. It may be
86 97 represented as either a "long" 40-byte hexadecimal string, or a
87 98 "short" 12-byte hexadecimal string.
88 99
89 100 Changeset, merge
90 101 A changeset with two parents. This occurs when a merge is
91 102 committed.
92 103
93 104 Changeset, parent
94 105 A revision upon which a child changeset is based. Specifically, a
95 106 parent changeset of a changeset C is a changeset whose node
96 107 immediately precedes C in the DAG. Changesets have at most two
97 108 parents.
98 109
99 110 Checkout
100 111 (Noun) The working directory being updated to a specific
101 112 revision. This use should probably be avoided where possible, as
102 113 changeset is much more appropriate than checkout in this context.
103 114
104 115 Example: "I'm using checkout X."
105 116
106 117 (Verb) Updating the working directory to a specific changeset. See
107 118 :hg:`help update`.
108 119
109 120 Example: "I'm going to check out changeset X."
110 121
111 122 Child changeset
112 123 See 'Changeset, child'.
113 124
114 125 Close changeset
115 126 See 'Changeset, close'.
116 127
117 128 Closed branch
118 129 See 'Branch, closed'.
119 130
120 131 Clone
121 132 (Noun) An entire or partial copy of a repository. The partial
122 133 clone must be in the form of a revision and its ancestors.
123 134
124 135 Example: "Is your clone up to date?".
125 136
126 137 (Verb) The process of creating a clone, using :hg:`clone`.
127 138
128 139 Example: "I'm going to clone the repository".
129 140
130 141 Closed branch head
131 142 See 'Head, closed branch'.
132 143
133 144 Commit
134 145 (Noun) A synonym for changeset.
135 146
136 147 Example: "Is the bug fixed in your recent commit?"
137 148
138 149 (Verb) The act of recording changes to a repository. When files
139 150 are committed in a working directory, Mercurial finds the
140 151 differences between the committed files and their parent
141 152 changeset, creating a new changeset in the repository.
142 153
143 154 Example: "You should commit those changes now."
144 155
145 156 Cset
146 157 A common abbreviation of the term changeset.
147 158
148 159 DAG
149 160 The repository of changesets of a distributed version control
150 161 system (DVCS) can be described as a directed acyclic graph (DAG),
151 162 consisting of nodes and edges, where nodes correspond to
152 163 changesets and edges imply a parent -> child relation. This graph
153 164 can be visualized by graphical tools such as :hg:`glog`
154 165 (graphlog). In Mercurial, the DAG is limited by the requirement
155 166 for children to have at most two parents.
156 167
157 168 Default branch
158 169 See 'Branch, default'.
159 170
160 171 Descendant
161 172 Any changeset that can be reached by a chain of child changesets
162 173 from a given changeset. More precisely, the descendants of a
163 174 changeset can be defined by two properties: the child of a
164 175 changeset is a descendant, and the child of a descendant is a
165 176 descendant. See also: 'Ancestor'.
166 177
167 178 Diff
168 179 (Noun) The difference between the contents and attributes of files
169 180 in two changesets or a changeset and the current working
170 181 directory. The difference is usually represented in a standard
171 182 form called a "diff" or "patch". The "git diff" format is used
172 183 when the changes include copies, renames, or changes to file
173 184 attributes, none of which can be represented/handled by classic
174 185 "diff" and "patch".
175 186
176 187 Example: "Did you see my correction in the diff?"
177 188
178 189 (Verb) Diffing two changesets is the action of creating a diff or
179 190 patch.
180 191
181 192 Example: "If you diff with changeset X, you will see what I mean."
182 193
183 194 Directory, working
184 195 The working directory represents the state of the files tracked by
185 196 Mercurial, that will be recorded in the next commit. The working
186 197 directory initially corresponds to the snapshot at an existing
187 198 changeset, known as the parent of the working directory. See
188 199 'Parent, working directory'. The state may be modified by changes
189 200 to the files introduced manually or by a merge. The repository
190 201 metadata exists in the .hg directory inside the working directory.
191 202
192 203 Graph
193 204 See DAG and :hg:`help graphlog`.
194 205
195 206 Head
196 207 The term 'head' may be used to refer to both a branch head or a
197 208 repository head, depending on the context. See 'Head, branch' and
198 209 'Head, repository' for specific definitions.
199 210
200 211 Heads are where development generally takes place and are the
201 212 usual targets for update and merge operations.
202 213
203 214 Head, branch
204 215 A changeset with no descendants on the same named branch.
205 216
206 217 Head, closed branch
207 218 A changeset that marks a head as no longer interesting. The closed
208 219 head is no longer listed by :hg:`heads`. A branch is considered
209 220 closed when all its heads are closed and consequently is not
210 221 listed by :hg:`branches`.
211 222
212 223 Head, repository
213 224 A topological head which has not been closed.
214 225
215 226 Head, topological
216 227 A changeset with no children in the repository.
217 228
218 229 History, immutable
219 230 Once committed, changesets cannot be altered. Extensions which
220 231 appear to change history actually create new changesets that
221 232 replace existing ones, and then destroy the old changesets. Doing
222 233 so in public repositories can result in old changesets being
223 234 reintroduced to the repository.
224 235
225 236 History, rewriting
226 237 The changesets in a repository are immutable. However, extensions
227 238 to Mercurial can be used to alter the repository, usually in such
228 239 a way as to preserve changeset contents.
229 240
230 241 Immutable history
231 242 See 'History, immutable'.
232 243
233 244 Merge changeset
234 245 See 'Changeset, merge'.
235 246
236 247 Manifest
237 248 Each changeset has a manifest, which is the list of files that are
238 249 tracked by the changeset.
239 250
240 251 Merge
241 252 Used to bring together divergent branches of work. When you update
242 253 to a changeset and then merge another changeset, you bring the
243 254 history of the latter changeset into your working directory. Once
244 255 conflicts are resolved (and marked), this merge may be committed
245 256 as a merge changeset, bringing two branches together in the DAG.
246 257
247 258 Named branch
248 259 See 'Branch, named'.
249 260
250 261 Null changeset
251 262 The empty changeset. It is the parent state of newly-initialized
252 263 repositories and repositories with no checked out revision. It is
253 264 thus the parent of root changesets and the effective ancestor when
254 265 merging unrelated changesets. Can be specified by the alias 'null'
255 266 or by the changeset ID '000000000000'.
256 267
257 268 Parent
258 269 See 'Changeset, parent'.
259 270
260 271 Parent changeset
261 272 See 'Changeset, parent'.
262 273
263 274 Parent, working directory
264 275 The working directory parent reflects a virtual revision which is
265 276 the child of the changeset (or two changesets with an uncommitted
266 277 merge) shown by :hg:`parents`. This is changed with
267 278 :hg:`update`. Other commands to see the working directory parent
268 279 are :hg:`summary` and :hg:`id`. Can be specified by the alias ".".
269 280
270 281 Patch
271 282 (Noun) The product of a diff operation.
272 283
273 284 Example: "I've sent you my patch."
274 285
275 286 (Verb) The process of using a patch file to transform one
276 287 changeset into another.
277 288
278 289 Example: "You will need to patch that revision."
279 290
280 291 Pull
281 292 An operation in which changesets in a remote repository which are
282 293 not in the local repository are brought into the local
283 294 repository. Note that this operation without special arguments
284 295 only updates the repository, it does not update the files in the
285 296 working directory. See :hg:`help pull`.
286 297
287 298 Push
288 299 An operation in which changesets in a local repository which are
289 300 not in a remote repository are sent to the remote repository. Note
290 301 that this operation only adds changesets which have been committed
291 302 locally to the remote repository. Uncommitted changes are not
292 303 sent. See :hg:`help push`.
293 304
294 305 Repository
295 306 The metadata describing all recorded states of a collection of
296 307 files. Each recorded state is represented by a changeset. A
297 308 repository is usually (but not always) found in the ``.hg``
298 309 subdirectory of a working directory. Any recorded state can be
299 310 recreated by "updating" a working directory to a specific
300 311 changeset.
301 312
302 313 Repository head
303 314 See 'Head, repository'.
304 315
305 316 Revision
306 317 A state of the repository at some point in time. Earlier revisions
307 318 can be updated to by using :hg:`update`. See also 'Revision
308 319 number'; See also 'Changeset'.
309 320
310 321 Revision number
311 322 This integer uniquely identifies a changeset in a specific
312 323 repository. It represents the order in which changesets were added
313 324 to a repository, starting with revision number 0. Note that the
314 325 revision number may be different in each clone of a repository. To
315 326 identify changesets uniquely between different clones, see
316 327 'Changeset id'.
317 328
318 329 Revlog
319 330 History storage mechanism used by Mercurial. It is a form of delta
320 331 encoding, with occasional full revision of data followed by delta
321 332 of each successive revision. It includes data and an index
322 333 pointing to the data.
323 334
324 335 Rewriting history
325 336 See 'History, rewriting'.
326 337
327 338 Root
328 339 A changeset that has only the null changeset as its parent. Most
329 340 repositories have only a single root changeset.
330 341
331 342 Tip
332 343 The changeset with the highest revision number. It is the changeset
333 344 most recently added in a repository.
334 345
335 346 Tip, branch
336 347 The head of a given branch with the highest revision number. When
337 348 a branch name is used as a revision identifier, it refers to the
338 349 branch tip. See also 'Branch, head'. Note that because revision
339 350 numbers may be different in different repository clones, the
340 351 branch tip may be different in different cloned repositories.
341 352
342 353 Update
343 354 (Noun) Another synonym of changeset.
344 355
345 356 Example: "I've pushed an update".
346 357
347 358 (Verb) This term is usually used to describe updating the state of
348 359 the working directory to that of a specific changeset. See
349 360 :hg:`help update`.
350 361
351 362 Example: "You should update".
352 363
353 364 Working directory
354 365 See 'Directory, working'.
355 366
356 367 Working directory parent
357 368 See 'Parent, working directory'.
General Comments 0
You need to be logged in to leave comments. Login now