author | wenzelm |
Wed, 03 Mar 2021 16:54:21 +0100 | |
changeset 73351 | 88dd8a6a42ba |
parent 73188 | 6e7ac8cefe57 |
child 73487 | 47f055b40ab9 |
permissions | -rw-r--r-- |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
1 |
Important notes on Mercurial repository access for Isabelle |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
2 |
=========================================================== |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
3 |
|
54963 | 4 |
Quick start in 30min |
49348 | 5 |
-------------------- |
6 |
||
73188 | 7 |
1. Platform prerequisites: ensure that "curl" and "hg" (Mercurial) are installed |
8 |
||
9 |
(a) Linux: e.g. "sudo apt install curl mercurial |
|
49348 | 10 |
|
73188 | 11 |
(b) macOS: e.g. "brew install mercurial" or download from https://www.mercurial-scm.org |
49348 | 12 |
|
73188 | 13 |
(c) Windows: use Cygwin64 with packages "curl" and "mercurial" (via Cygwin setup-x86_64.exe) |
14 |
||
15 |
2. Initial repository clone (bash shell commands): |
|
49348 | 16 |
|
67744 | 17 |
hg clone https://isabelle.in.tum.de/repos/isabelle |
49348 | 18 |
|
50575 | 19 |
cd isabelle |
49348 | 20 |
|
50653
5c85f8b80b95
simplified quick start via "isabelle components -I";
wenzelm
parents:
50617
diff
changeset
|
21 |
./bin/isabelle components -I |
5c85f8b80b95
simplified quick start via "isabelle components -I";
wenzelm
parents:
50617
diff
changeset
|
22 |
|
50575 | 23 |
./bin/isabelle components -a |
49348 | 24 |
|
50575 | 25 |
./bin/isabelle jedit -l HOL |
49348 | 26 |
|
51502 | 27 |
./bin/isabelle build -b HOL #optional: build session image manually |
28 |
||
73188 | 29 |
3. Update repository to particular version (bash shell commands): |
50281
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
30 |
|
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
31 |
cd isabelle |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
32 |
|
73188 | 33 |
hg pull https://isabelle.in.tum.de/repos/isabelle |
34 |
||
35 |
hg update -r VERSION #for VERSION e.g. "tip", "Isabelle2021", "9e967acf8f0f" |
|
50281
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
36 |
|
50575 | 37 |
./bin/isabelle components -a |
38 |
||
39 |
./bin/isabelle jedit -l HOL |
|
40 |
||
73188 | 41 |
4. Build documentation (bash shell commands): |
51502 | 42 |
|
53359 | 43 |
./bin/isabelle build_doc -a |
51502 | 44 |
|
45 |
./bin/isabelle doc system |
|
46 |
||
49348 | 47 |
|
40601 | 48 |
Introduction |
49 |
------------ |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
50 |
|
68378 | 51 |
Mercurial https://www.mercurial-scm.org belongs to source code |
63985 | 52 |
management systems that follow the so-called paradigm of "distributed |
71583 | 53 |
version control". This means plain versioning without the legacy of |
54 |
SVN and the extra complexity of GIT. See also |
|
55 |
https://www.mercurial-scm.org/learn |
|
40601 | 56 |
|
63985 | 57 |
Mercurial offers some flexibility in organizing the flow of changes, |
40601 | 58 |
both between individual developers and designated pull/push areas that |
63985 | 59 |
are shared with others. This additional freedom demands additional |
40601 | 60 |
responsibility to maintain a certain development process that fits to |
61 |
a particular project. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
62 |
|
40601 | 63 |
Regular Mercurial operations are strictly monotonic, where changeset |
51502 | 64 |
transactions are only added, but never deleted or mutated. There are |
65 |
special tools to manipulate repositories via non-monotonic actions |
|
66 |
(such as "rollback" or "strip"), but recovering from gross mistakes |
|
67 |
that have escaped into the public can be hard and embarrassing. It is |
|
68 |
much easier to inspect and amend changesets routinely before pushing. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
69 |
|
40601 | 70 |
The effect of the critical "pull" / "push" operations can be tested in |
71 |
a dry run via "incoming" / "outgoing". The "fetch" extension includes |
|
51502 | 72 |
useful sanity checks beyond raw "pull" / "update" / "merge", although |
73 |
it has lost popularity in recent years. Most other operations are |
|
74 |
local to the user's repository clone. This gives some freedom for |
|
75 |
experimentation without affecting anybody else. |
|
40601 | 76 |
|
77 |
Mercurial provides nice web presentation of incoming changes with a |
|
78 |
digest of log entries; this also includes RSS/Atom news feeds. There |
|
47449 | 79 |
are add-on history browsers such as "hg view" and TortoiseHg. Unlike |
80 |
the default web view, some of these tools help to inspect the semantic |
|
81 |
content of non-trivial merge nodes. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
82 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
83 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
84 |
Initial configuration |
29481 | 85 |
--------------------- |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
86 |
|
51502 | 87 |
The main Isabelle repository can be cloned like this: |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
88 |
|
67744 | 89 |
hg clone https://isabelle.in.tum.de/repos/isabelle |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
90 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
91 |
This will create a local directory "isabelle", unless an alternative |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
92 |
name is specified. The full repository meta-data and history of |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
93 |
changes is in isabelle/.hg; local configuration for this clone can be |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
94 |
added to isabelle/.hg/hgrc, but note that hgrc files are never copied |
40601 | 95 |
by another clone operation. |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
96 |
|
28917 | 97 |
|
28913 | 98 |
There is also $HOME/.hgrc for per-user Mercurial configuration. The |
40601 | 99 |
initial configuration requires at least an entry to identify yourself |
100 |
as follows: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
101 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
102 |
[ui] |
71583 | 103 |
username = ABC |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
104 |
|
40601 | 105 |
Isabelle contributors are free to choose either a short "login name" |
106 |
(for accounts at TU Munich) or a "full name" -- with or without mail |
|
107 |
address. It is important to stick to this choice once and for all. |
|
108 |
The machine default that Mercurial produces for unspecified |
|
109 |
[ui]username is not appropriate. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
110 |
|
40601 | 111 |
Such configuration can be given in $HOME/.hgrc (for each home |
112 |
directory on each machine) or in .hg/hgrc (for each repository clone). |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
113 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
114 |
|
40601 | 115 |
Here are some further examples for hgrc. This is how to provide |
116 |
default options for common commands: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
117 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
118 |
[defaults] |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
119 |
log = -l 10 |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
120 |
|
40601 | 121 |
This is how to configure some extension, which is called "graphlog" |
122 |
and provides the "glog" command: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
123 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
124 |
[extensions] |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
125 |
hgext.graphlog = |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
126 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
127 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
128 |
Shared pull/push access |
29481 | 129 |
----------------------- |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
130 |
|
67744 | 131 |
The entry point https://isabelle.in.tum.de/repos/isabelle is world |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
132 |
readable, both via plain web browsing and the hg client as described |
40601 | 133 |
above. Anybody can produce a clone, change it locally, and then use |
134 |
regular mechanisms of Mercurial to report changes upstream, say via |
|
135 |
mail to someone with write access to that file space. It is also |
|
136 |
quite easy to publish changed clones again on the web, using the |
|
137 |
ad-hoc command "hg serve -v", or the hgweb.cgi or hgwebdir.cgi scripts |
|
138 |
that are included in the Mercurial distribution, and send a "pull |
|
71583 | 139 |
request" to someone else. |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
140 |
|
28913 | 141 |
The downstream/upstream mode of operation is quite common in the |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
142 |
distributed version control community, and works well for occasional |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
143 |
changes produced by anybody out there. Of course, upstream |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
144 |
maintainers need to review and moderate changes being proposed, before |
40601 | 145 |
pushing anything onto the official Isabelle repository at TUM. Direct |
146 |
pushes are also reviewed routinely in a post-hoc fashion; everybody |
|
147 |
hooked on the main repository is called to keep an eye on incoming |
|
51502 | 148 |
changes. In any case, changesets need to be understandable, both at |
149 |
the time of writing and many years later. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
150 |
|
40601 | 151 |
Push access to the Isabelle repository requires an account at TUM, |
51072 | 152 |
with properly configured ssh to isabelle-server.in.tum.de. You also |
153 |
need to be a member of the "isabelle" Unix group. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
154 |
|
28913 | 155 |
Sharing a locally modified clone then works as follows, using your |
156 |
user name instead of "wenzelm": |
|
157 |
||
51072 | 158 |
hg out ssh://wenzelm@isabelle-server.in.tum.de//home/isabelle-repository/repos/isabelle |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
159 |
|
28913 | 160 |
In fact, the "out" or "outgoing" command performs only a dry run: it |
161 |
displays the changesets that would get published. An actual "push", |
|
162 |
with a lasting effect on the Isabelle repository, works like this: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
163 |
|
51072 | 164 |
hg push ssh://wenzelm@isabelle-server.in.tum.de//home/isabelle-repository/repos/isabelle |
28913 | 165 |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
166 |
|
40601 | 167 |
Default paths for push and pull can be configured in |
168 |
isabelle/.hg/hgrc, for example: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
169 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
170 |
[paths] |
51072 | 171 |
default = ssh://wenzelm@isabelle-server.in.tum.de//home/isabelle-repository/repos/isabelle |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
172 |
|
28913 | 173 |
Now "hg pull" or "hg push" will use that shared file space, unless a |
174 |
different URL is specified explicitly. |
|
175 |
||
176 |
When cloning a repository, the default path is set to the initial |
|
177 |
source URL. So we could have cloned via that ssh URL in the first |
|
178 |
place, to get exactly to the same point: |
|
179 |
||
51072 | 180 |
hg clone ssh://wenzelm@isabelle-server.in.tum.de//home/isabelle-repository/repos/isabelle |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
181 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
182 |
|
40601 | 183 |
Simple merges |
184 |
------------- |
|
30182 | 185 |
|
186 |
The main idea of Mercurial is to let individual users produce |
|
187 |
independent branches of development first, but merge with others |
|
188 |
frequently. The basic hg merge operation is more general than |
|
189 |
required for the mode of operation with a shared pull/push area. The |
|
40601 | 190 |
"fetch" extension accommodates this case nicely, automating trivial |
30182 | 191 |
merges and requiring manual intervention for actual conflicts only. |
192 |
||
40601 | 193 |
The fetch extension can be configured via $HOME/.hgrc like this: |
30182 | 194 |
|
195 |
[extensions] |
|
196 |
hgext.fetch = |
|
197 |
||
198 |
[defaults] |
|
199 |
fetch = -m "merged" |
|
200 |
||
40601 | 201 |
To keep merges semantically trivial and prevent genuine merge |
202 |
conflicts or lost updates, it is essential to observe to following |
|
203 |
general discipline wrt. the public Isabelle push area: |
|
204 |
||
205 |
* Before editing, pull or fetch the latest version. |
|
206 |
||
207 |
* Accumulate private commits for a maximum of 1-3 days. |
|
208 |
||
209 |
* Start publishing again by pull or fetch, which normally produces |
|
210 |
local merges. |
|
211 |
||
50281
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
212 |
* Test the merged result, e.g. like this: |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
213 |
|
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
214 |
isabelle build -a |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
215 |
|
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
216 |
* Push back in real time. |
40601 | 217 |
|
218 |
Piling private changes and public merges longer than 0.5-2 hours is |
|
219 |
apt to produce some mess when pushing eventually! |
|
30182 | 220 |
|
50281
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
221 |
The pull-test-push cycle should not be repeated too fast, to avoid |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
222 |
delaying others from doing the same concurrently. |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
223 |
|
30182 | 224 |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
225 |
Content discipline |
29481 | 226 |
------------------ |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
227 |
|
40601 | 228 |
The following principles should be kept in mind when producing |
229 |
changesets that are meant to be published at some point. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
230 |
|
40601 | 231 |
* The author of changes needs to be properly identified, using |
232 |
[ui]username configuration as described above. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
233 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
234 |
While Mercurial also provides means for signed changesets, we want |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
235 |
to keep things simple and trust that users specify their identity |
40601 | 236 |
correctly (and uniquely). |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
237 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
238 |
* The history of sources is an integral part of the sources |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
239 |
themselves. This means that private experiments and branches |
40601 | 240 |
should not be published by accident. Named branches are not |
241 |
allowed on the public version. Note that old SVN-style branching |
|
242 |
is replaced by regular repository clones in Mercurial. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
243 |
|
40601 | 244 |
Exchanging local experiments with some other users can be done |
245 |
directly on peer-to-peer basis, without affecting the central |
|
246 |
pull/push area. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
247 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
248 |
* Log messages are an integral part of the history of sources. |
40601 | 249 |
Other people will have to inspect them routinely, to understand |
250 |
why things have been done in a certain way at some point. |
|
251 |
||
252 |
Authors of log entries should be aware that published changes are |
|
253 |
actually read. The main point is not to announce novelties, but |
|
254 |
to describe faithfully what has been done, and provide some clues |
|
255 |
about the motivation behind it. The main recipient is someone who |
|
256 |
needs to understand the change in the distant future to isolate |
|
51502 | 257 |
problems. Sometimes it is helpful to reference past changes |
258 |
formally via changeset ids in the log entry. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
259 |
|
40601 | 260 |
* The standard changelog entry format of the Isabelle repository |
51502 | 261 |
admits several (somehow related) items to be rolled into one |
40601 | 262 |
changeset. Each item is then described on a separate line that |
263 |
may become longer as screen line and is terminated by punctuation. |
|
264 |
These lines are roughly ordered by importance. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
265 |
|
40601 | 266 |
This format conforms to established Isabelle tradition. In |
267 |
contrast, the default of Mercurial prefers a single headline |
|
268 |
followed by a long body text. The reason for that is a somewhat |
|
269 |
different development model of typical "distributed" projects, |
|
270 |
where external changes pass through a hierarchy of reviewers and |
|
271 |
maintainers, until they end up in some authoritative repository. |
|
272 |
Isabelle changesets can be more spontaneous, growing from the |
|
273 |
bottom-up. |
|
274 |
||
67744 | 275 |
The web style of https://isabelle.in.tum.de/repos/isabelle |
40601 | 276 |
accommodates the Isabelle changelog format. Note that multiple |
277 |
lines will sometimes display as a single paragraph in HTML, so |
|
278 |
some terminating punctuation is required. Do not squeeze multiple |
|
279 |
items on the same line in the original text! |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
280 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
281 |
|
51502 | 282 |
Testing of changes (before push) |
283 |
-------------------------------- |
|
48497
ba61aceaa18a
some updates on "Building a repository version of Isabelle";
wenzelm
parents:
47449
diff
changeset
|
284 |
|
51502 | 285 |
The integrity of the standard pull/push area of Isabelle needs the be |
286 |
preserved at all time. This means that a complete test with default |
|
287 |
configuration needs to be finished successfully before push. If the |
|
288 |
preparation of the push involves a pull/merge phase, its result needs |
|
289 |
to covered by the test as well. |
|
28908 | 290 |
|
51502 | 291 |
There are several possibilities to perform the test, e.g. using the |
292 |
Isabelle testboard at TUM. In contrast, the subsequent command-line |
|
293 |
examples are for tests on the local machine: |
|
48844 | 294 |
|
51502 | 295 |
./bin/isabelle build -a #regular test |
48844 | 296 |
|
63985 | 297 |
./bin/isabelle build -a -o document=pdf #test with document preparation (optional) |
48844 | 298 |
|
51502 | 299 |
./bin/isabelle build -a -j2 -o threads=4 #test on multiple cores (example) |
48497
ba61aceaa18a
some updates on "Building a repository version of Isabelle";
wenzelm
parents:
47449
diff
changeset
|
300 |
|
51502 | 301 |
See also the chapter on Isabelle sessions and build management in the |
66753 | 302 |
"system" manual. The build option -S is particularly useful for quick |
303 |
tests of individual commits, e.g. for each step of a longer chain of |
|
304 |
changes, but the final push always requires a full test as above! |
|
48986
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
305 |
|
51502 | 306 |
Note that implicit dependencies on Isabelle components are specified |
307 |
via catalog files in $ISABELLE_HOME/Admin/components/ as part of the |
|
308 |
Mercurial history. This allows to bisect over a range of Isabelle |
|
309 |
versions while references to the contributing components change |
|
310 |
accordingly. Recall that "isabelle components -a" updates the local |
|
311 |
component store monotonically according to that information, and thus |
|
312 |
resolves missing components. |