Fossil SCM

Clarity, formatting, and grammar edit pass on the new www/mirrortogithub.md document.

wyoung 2019-03-17 04:21 trunk
Commit 5cb3e09464866829b8c54ef9a8882d9615c5d93759e09342128de926533724f4
1 file changed +31 -27
--- www/mirrortogithub.md
+++ www/mirrortogithub.md
@@ -1,8 +1,8 @@
11
# How To Mirror A Fossil Repository On GitHub
22
3
-Beginning with Fossil version 2.9, can mirror a Fossil-based
3
+Beginning with Fossil version 2.9, you can mirror a Fossil-based
44
project on GitHub by following these steps:
55
66
<ol>
77
<li><p>Create an account on GitHub if you do not have one already. Log
88
into that account.
@@ -19,26 +19,29 @@
1919
2020
<li><p>Back on your workstation, move to a checkout for your project and
2121
type:
2222
2323
<blockquote>
24
-fossil git export GITREPO --autopush https://<font color="orange">username</font>:<font color="red">password</font>@github.com/username/project.git
24
+<pre>$ fossil git export /path/to/git/repo --autopush \
25
+ https://<font color="orange">username</font>:<font color="red">password</font>@github.com/username/project.git</pre>
2526
</blockquote>
2627
27
-<p> In place of GITREPO above, put in some directory name that is not
28
- part of your source tree. The directory need not exist - Fossil will
29
- create it if necessary. This GITREPO directory will become a Git
30
- repository that holds a translation of your Fossil repository.
31
-
32
-<p> The --autopush option tells Fossil that you want to push the Git
33
- translation up to GitHub every time it is updated.
34
- Note that you will need to augment the URL supplied by GitHub
35
- to insert your account <font color="orange">username</font>
36
- and <font color="red">password</font>.
37
-
38
-<p> You can also run the command above outside of any open checkout
39
- of your project by supplying the "-R repository" option.
28
+<p> In place of the <code>/path/to...</code> argument above, put in some
29
+ directory name that is <i>outside</i> of your Fossil checkout. Fossil
30
+ will create this directory if necessary. This directory will
31
+ become a Git repository that holds a translation of your Fossil
32
+ repository.
33
+
34
+<p> The <code>--autopush</code> option tells Fossil that you want to
35
+ push the Git translation up to GitHub every time it is updated. Note
36
+ that you will need to augment the URL supplied by GitHub to insert
37
+ your account <font color="orange">username</font> and <font
38
+ color="red">password</font>.
39
+
40
+<p> You can also run the command above outside of any open checkout of
41
+ your project by supplying the “<code>-R&nbsp;repository</code>”
42
+ option.
4043
4144
<li><p>Get some coffee. Depending on the size of your project, the
4245
command above can run for several minutes.
4346
4447
<li><p>And you are done! Assuming everything worked, your project is now
@@ -46,38 +49,39 @@
4649
4750
<li><p>Whenever you update your project, simply run this command to update
4851
the mirror:
4952
5053
<blockquote>
51
-fossil git export
54
+<pre>$ fossil git export</pre>
5255
</blockquote>
5356
5457
55
-<p> When updating your project, you do not need to reenter the GITREPO
56
- or the --autopush. Fossil remembers those things. The initial
57
- mirroring operation probably took several minutes (or tens of minutes)
58
- but a typical update will happen in a second or less.
58
+<p> Unlike with the first time you ran that command, you don’t need
59
+ the remaining arguments, because Fossil remembers those things.
60
+ Subsequent mirror updates should happen in a second or less.
5961
</ol>
6062
6163
## Notes:
6264
6365
* The mirroring is one-way. If you check in changes on GitHub, those
6466
changes will not be reabsorbed by Fossil. There are technical problems
6567
that make a two-way mirror all but impossible.
6668
67
- * The "fossil git export" command creates subprocesses that run "git"
68
- commands. So you must have Git installed on your machine for any
69
+ This also means that you cannot accept pull requests on GitHub.
70
+
71
+ * The "`fossil git export`" command creates subprocesses that run "`git`"
72
+ commands, so you must have Git installed on your machine for any
6973
of this to work.
7074
7175
* The Git repository will have an extra unmanaged top-level directory named
7276
"`.mirror_state`" that contains one or more files. Those files are
7377
used to store the intermediate state of the translation so that
74
- subsequent invocations of "fossil git export" will know where you
75
- left of last time and what new content needs to be moved over into
78
+ subsequent invocations of "`fossil git export`" will know where you
79
+ left off the last time and what new content needs to be moved over into
7680
Git. Be careful not to mess with the `.mirror_state` directory or
77
- any of its contents. Do not manages those files. Do not edit or
78
- delete them.
81
+ any of its contents. Do not put those files under Git management. Do
82
+ not edit or delete them.
7983
8084
* Only check-ins and simple tags are translated to Git. Git does not
8185
support wiki or tickets or unversioned content or any of the other
8286
features of Fossil that make it so convenient to use, so those other
8387
elements cannot be mirrored in Git.
@@ -86,11 +90,11 @@
8690
same tag on two or more check-ins, the tag will only be preserved on
8791
the chronologically newest check-in.
8892
8993
## Example GitHub Mirrors
9094
91
-As of this writing (2019-03-16) the Fossil self-repository is mirrored
95
+As of this writing (2019-03-16) Fossil’s own repository is mirrored
9296
on GitHub at:
9397
9498
>
9599
<https://github.com/drhsqlite/fossil-mirror>
96100
97101
--- www/mirrortogithub.md
+++ www/mirrortogithub.md
@@ -1,8 +1,8 @@
1 # How To Mirror A Fossil Repository On GitHub
2
3 Beginning with Fossil version 2.9, can mirror a Fossil-based
4 project on GitHub by following these steps:
5
6 <ol>
7 <li><p>Create an account on GitHub if you do not have one already. Log
8 into that account.
@@ -19,26 +19,29 @@
19
20 <li><p>Back on your workstation, move to a checkout for your project and
21 type:
22
23 <blockquote>
24 fossil git export GITREPO --autopush https://<font color="orange">username</font>:<font color="red">password</font>@github.com/username/project.git
 
25 </blockquote>
26
27 <p> In place of GITREPO above, put in some directory name that is not
28 part of your source tree. The directory need not exist - Fossil will
29 create it if necessary. This GITREPO directory will become a Git
30 repository that holds a translation of your Fossil repository.
31
32 <p> The --autopush option tells Fossil that you want to push the Git
33 translation up to GitHub every time it is updated.
34 Note that you will need to augment the URL supplied by GitHub
35 to insert your account <font color="orange">username</font>
36 and <font color="red">password</font>.
37
38 <p> You can also run the command above outside of any open checkout
39 of your project by supplying the "-R repository" option.
 
 
40
41 <li><p>Get some coffee. Depending on the size of your project, the
42 command above can run for several minutes.
43
44 <li><p>And you are done! Assuming everything worked, your project is now
@@ -46,38 +49,39 @@
46
47 <li><p>Whenever you update your project, simply run this command to update
48 the mirror:
49
50 <blockquote>
51 fossil git export
52 </blockquote>
53
54
55 <p> When updating your project, you do not need to reenter the GITREPO
56 or the --autopush. Fossil remembers those things. The initial
57 mirroring operation probably took several minutes (or tens of minutes)
58 but a typical update will happen in a second or less.
59 </ol>
60
61 ## Notes:
62
63 * The mirroring is one-way. If you check in changes on GitHub, those
64 changes will not be reabsorbed by Fossil. There are technical problems
65 that make a two-way mirror all but impossible.
66
67 * The "fossil git export" command creates subprocesses that run "git"
68 commands. So you must have Git installed on your machine for any
 
 
69 of this to work.
70
71 * The Git repository will have an extra unmanaged top-level directory named
72 "`.mirror_state`" that contains one or more files. Those files are
73 used to store the intermediate state of the translation so that
74 subsequent invocations of "fossil git export" will know where you
75 left of last time and what new content needs to be moved over into
76 Git. Be careful not to mess with the `.mirror_state` directory or
77 any of its contents. Do not manages those files. Do not edit or
78 delete them.
79
80 * Only check-ins and simple tags are translated to Git. Git does not
81 support wiki or tickets or unversioned content or any of the other
82 features of Fossil that make it so convenient to use, so those other
83 elements cannot be mirrored in Git.
@@ -86,11 +90,11 @@
86 same tag on two or more check-ins, the tag will only be preserved on
87 the chronologically newest check-in.
88
89 ## Example GitHub Mirrors
90
91 As of this writing (2019-03-16) the Fossil self-repository is mirrored
92 on GitHub at:
93
94 >
95 <https://github.com/drhsqlite/fossil-mirror>
96
97
--- www/mirrortogithub.md
+++ www/mirrortogithub.md
@@ -1,8 +1,8 @@
1 # How To Mirror A Fossil Repository On GitHub
2
3 Beginning with Fossil version 2.9, you can mirror a Fossil-based
4 project on GitHub by following these steps:
5
6 <ol>
7 <li><p>Create an account on GitHub if you do not have one already. Log
8 into that account.
@@ -19,26 +19,29 @@
19
20 <li><p>Back on your workstation, move to a checkout for your project and
21 type:
22
23 <blockquote>
24 <pre>$ fossil git export /path/to/git/repo --autopush \
25 https://<font color="orange">username</font>:<font color="red">password</font>@github.com/username/project.git</pre>
26 </blockquote>
27
28 <p> In place of the <code>/path/to...</code> argument above, put in some
29 directory name that is <i>outside</i> of your Fossil checkout. Fossil
30 will create this directory if necessary. This directory will
31 become a Git repository that holds a translation of your Fossil
32 repository.
33
34 <p> The <code>--autopush</code> option tells Fossil that you want to
35 push the Git translation up to GitHub every time it is updated. Note
36 that you will need to augment the URL supplied by GitHub to insert
37 your account <font color="orange">username</font> and <font
38 color="red">password</font>.
39
40 <p> You can also run the command above outside of any open checkout of
41 your project by supplying the “<code>-R&nbsp;repository</code>”
42 option.
43
44 <li><p>Get some coffee. Depending on the size of your project, the
45 command above can run for several minutes.
46
47 <li><p>And you are done! Assuming everything worked, your project is now
@@ -46,38 +49,39 @@
49
50 <li><p>Whenever you update your project, simply run this command to update
51 the mirror:
52
53 <blockquote>
54 <pre>$ fossil git export</pre>
55 </blockquote>
56
57
58 <p> Unlike with the first time you ran that command, you don’t need
59 the remaining arguments, because Fossil remembers those things.
60 Subsequent mirror updates should happen in a second or less.
 
61 </ol>
62
63 ## Notes:
64
65 * The mirroring is one-way. If you check in changes on GitHub, those
66 changes will not be reabsorbed by Fossil. There are technical problems
67 that make a two-way mirror all but impossible.
68
69 This also means that you cannot accept pull requests on GitHub.
70
71 * The "`fossil git export`" command creates subprocesses that run "`git`"
72 commands, so you must have Git installed on your machine for any
73 of this to work.
74
75 * The Git repository will have an extra unmanaged top-level directory named
76 "`.mirror_state`" that contains one or more files. Those files are
77 used to store the intermediate state of the translation so that
78 subsequent invocations of "`fossil git export`" will know where you
79 left off the last time and what new content needs to be moved over into
80 Git. Be careful not to mess with the `.mirror_state` directory or
81 any of its contents. Do not put those files under Git management. Do
82 not edit or delete them.
83
84 * Only check-ins and simple tags are translated to Git. Git does not
85 support wiki or tickets or unversioned content or any of the other
86 features of Fossil that make it so convenient to use, so those other
87 elements cannot be mirrored in Git.
@@ -86,11 +90,11 @@
90 same tag on two or more check-ins, the tag will only be preserved on
91 the chronologically newest check-in.
92
93 ## Example GitHub Mirrors
94
95 As of this writing (2019-03-16) Fossil’s own repository is mirrored
96 on GitHub at:
97
98 >
99 <https://github.com/drhsqlite/fossil-mirror>
100
101

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button