Fossil SCM

Fix bullets in wsl_caveats.wiki

larrybr 2022-01-23 12:52 trunk
Commit ea6b2d3e86f1ed881265c1f57aaf563e38ba70bde674c321b869f2578816fadc
1 file changed +23 -23
--- www/wsl_caveats.wiki
+++ www/wsl_caveats.wiki
@@ -2,15 +2,15 @@
22
33
<h2>When These Issues Matter</h2>
44
55
The discussion following is relevant to those who:
66
7
- * Are using the Windows Subsystem for Linux (aka "WSL");
8
- * Create a Fossil checkout in a directory accessible from WSL and Windows;
9
- * Use both Linux Fossil and Windows tools to modify files in a checkout;
10
- * Desire to or must preserve execute permissions set for repository files;
11
- * and Use Linux Fossil to commit changes made within the checkout.
7
+ * Are using the Windows Subsystem for Linux (aka "WSL");
8
+ * Create a Fossil checkout in a directory accessible from WSL and Windows;
9
+ * Use both Linux Fossil and Windows tools to modify files in a checkout;
10
+ * Desire to or must preserve execute permissions set for repository files;
11
+ * and Use Linux Fossil to commit changes made within the checkout.
1212
1313
Note that these criteria apply conjunctively; if any are not met,
1414
then the consequences of the issues below are at worst annoying
1515
and otherwise harmless or absent.
1616
@@ -74,65 +74,65 @@
7474
7575
<h2>Problematic Usage Scenarios</h2>
7676
7777
<h3>A Simple Example</h3>
7878
79
-* Open a checkout in Windows (using fossil.exe) from a project
79
+ * Open a checkout in Windows (using fossil.exe) from a project
8080
whose files have a mixture of executable and non-executable files.
8181
Use a checkout directory visible when running under WSL.
8282
83
-* Navigate to the same directory in a Linux shell on WSL, then
83
+ * Navigate to the same directory in a Linux shell on WSL, then
8484
run "fossil status".
8585
86
-* Depending upon /etc/wsl.conf content (or defaults in its absence),
86
+ * Depending upon /etc/wsl.conf content (or defaults in its absence),
8787
the status ouput will tag checkout files as EXECUTABLE or NOEXEC.
8888
8989
<h3>Continuation of Simple Example</h3>
9090
91
-* In the same checkout as above "Simple Example", on WSL,
91
+ * In the same checkout as above "Simple Example", on WSL,
9292
run "fossil revert" to correct all those errant X-bit values.
9393
94
-* Run "fossil status" again in WSL to verify absence of toggled X-bits.
94
+ * Run "fossil status" again in WSL to verify absence of toggled X-bits.
9595
96
-* Run "ls -l" from WSL to find two files, one with its X-bit set
96
+ * Run "ls -l" from WSL to find two files, one with its X-bit set
9797
and the other with it clear.
9898
99
-* From Windows, perform these steps on each of those files:
100
-(1) read the_file content into a buffer<br>
101
-(2) rename the_file the_file.bak<br>
102
-(3) write buffer content to new file, the_file<br>
103
-(4) del the_file.bak (or leave it)<br>
104
-(Note that this sequence is similar to what many editors do when
99
+ * From Windows, perform these steps on each of those files:<br>
100
+&nbsp;&nbsp;(1) read the_file content into a buffer<br>
101
+&nbsp;&nbsp;(2) rename the_file the_file.bak<br>
102
+&nbsp;&nbsp;(3) write buffer content to new file, the_file<br>
103
+&nbsp;&nbsp;(4) del the_file.bak (or leave it)<br>
104
+&nbsp;&nbsp;(Note that this sequence is similar to what many editors do when
105105
a user modifies a file then uses undo to reverse the changes.)
106106
107
-* Run "fossil status" again in WSL and observe that one of the
107
+ * Run "fossil status" again in WSL and observe that one of the
108108
two files has had its X-bit toggled.
109109
110110
<h3>A Fossil-Only Example</h3>
111111
112
-* In the another (different) checkout of the same version,
112
+ * In the another (different) checkout of the same version,
113113
somehow cause "legitimate" X-bit toggles of two files whose
114114
X-bits differ. (This "somehow" probably will involve WSL to
115115
toggle file bits and fossil on WSL to commit the toggles.)
116116
117
-* In the Simple Example checkout, use fossil.exe on Windows
117
+ * In the Simple Example checkout, use fossil.exe on Windows
118118
to update the checkout, ostensibly bringing the X-bit toggles
119119
into the affected checkout files.
120120
121
-* In the Simple Example checkout, use fossil on WSL to run
121
+ * In the Simple Example checkout, use fossil on WSL to run
122122
"fossil status", and observe at least one X-bit discrepancy.
123123
124124
<h2>Recommended Workflow</h2>
125125
126126
There are two simple approaches for dealing with this issue when
127127
one wishes to continue using the same checkout directory from
128128
Windows and WSL. Either one is effective. These are:
129129
130
-* Do not use fossil on WSL for any operations which will modify
130
+ * Do not use fossil on WSL for any operations which will modify
131131
the repository. Instead, block those operations in some manner.
132132
133
-* Do not use any tools on Windows, (including certain subcommands
133
+ * Do not use any tools on Windows, (including certain subcommands
134134
of fossil.exe,) which may modify the X-bits on files within the
135135
shared checkout, instead restricting use of Windows tools to those
136136
which are known to only (and actually) modify file content in place
137137
while preserving X-bit values. (The "actually" proviso emphasizes
138138
that tools which only simulate in-place file modification, but do
139139
--- www/wsl_caveats.wiki
+++ www/wsl_caveats.wiki
@@ -2,15 +2,15 @@
2
3 <h2>When These Issues Matter</h2>
4
5 The discussion following is relevant to those who:
6
7 * Are using the Windows Subsystem for Linux (aka "WSL");
8 * Create a Fossil checkout in a directory accessible from WSL and Windows;
9 * Use both Linux Fossil and Windows tools to modify files in a checkout;
10 * Desire to or must preserve execute permissions set for repository files;
11 * and Use Linux Fossil to commit changes made within the checkout.
12
13 Note that these criteria apply conjunctively; if any are not met,
14 then the consequences of the issues below are at worst annoying
15 and otherwise harmless or absent.
16
@@ -74,65 +74,65 @@
74
75 <h2>Problematic Usage Scenarios</h2>
76
77 <h3>A Simple Example</h3>
78
79 * Open a checkout in Windows (using fossil.exe) from a project
80 whose files have a mixture of executable and non-executable files.
81 Use a checkout directory visible when running under WSL.
82
83 * Navigate to the same directory in a Linux shell on WSL, then
84 run "fossil status".
85
86 * Depending upon /etc/wsl.conf content (or defaults in its absence),
87 the status ouput will tag checkout files as EXECUTABLE or NOEXEC.
88
89 <h3>Continuation of Simple Example</h3>
90
91 * In the same checkout as above "Simple Example", on WSL,
92 run "fossil revert" to correct all those errant X-bit values.
93
94 * Run "fossil status" again in WSL to verify absence of toggled X-bits.
95
96 * Run "ls -l" from WSL to find two files, one with its X-bit set
97 and the other with it clear.
98
99 * From Windows, perform these steps on each of those files:
100 (1) read the_file content into a buffer<br>
101 (2) rename the_file the_file.bak<br>
102 (3) write buffer content to new file, the_file<br>
103 (4) del the_file.bak (or leave it)<br>
104 (Note that this sequence is similar to what many editors do when
105 a user modifies a file then uses undo to reverse the changes.)
106
107 * Run "fossil status" again in WSL and observe that one of the
108 two files has had its X-bit toggled.
109
110 <h3>A Fossil-Only Example</h3>
111
112 * In the another (different) checkout of the same version,
113 somehow cause "legitimate" X-bit toggles of two files whose
114 X-bits differ. (This "somehow" probably will involve WSL to
115 toggle file bits and fossil on WSL to commit the toggles.)
116
117 * In the Simple Example checkout, use fossil.exe on Windows
118 to update the checkout, ostensibly bringing the X-bit toggles
119 into the affected checkout files.
120
121 * In the Simple Example checkout, use fossil on WSL to run
122 "fossil status", and observe at least one X-bit discrepancy.
123
124 <h2>Recommended Workflow</h2>
125
126 There are two simple approaches for dealing with this issue when
127 one wishes to continue using the same checkout directory from
128 Windows and WSL. Either one is effective. These are:
129
130 * Do not use fossil on WSL for any operations which will modify
131 the repository. Instead, block those operations in some manner.
132
133 * Do not use any tools on Windows, (including certain subcommands
134 of fossil.exe,) which may modify the X-bits on files within the
135 shared checkout, instead restricting use of Windows tools to those
136 which are known to only (and actually) modify file content in place
137 while preserving X-bit values. (The "actually" proviso emphasizes
138 that tools which only simulate in-place file modification, but do
139
--- www/wsl_caveats.wiki
+++ www/wsl_caveats.wiki
@@ -2,15 +2,15 @@
2
3 <h2>When These Issues Matter</h2>
4
5 The discussion following is relevant to those who:
6
7 * Are using the Windows Subsystem for Linux (aka "WSL");
8 * Create a Fossil checkout in a directory accessible from WSL and Windows;
9 * Use both Linux Fossil and Windows tools to modify files in a checkout;
10 * Desire to or must preserve execute permissions set for repository files;
11 * and Use Linux Fossil to commit changes made within the checkout.
12
13 Note that these criteria apply conjunctively; if any are not met,
14 then the consequences of the issues below are at worst annoying
15 and otherwise harmless or absent.
16
@@ -74,65 +74,65 @@
74
75 <h2>Problematic Usage Scenarios</h2>
76
77 <h3>A Simple Example</h3>
78
79 * Open a checkout in Windows (using fossil.exe) from a project
80 whose files have a mixture of executable and non-executable files.
81 Use a checkout directory visible when running under WSL.
82
83 * Navigate to the same directory in a Linux shell on WSL, then
84 run "fossil status".
85
86 * Depending upon /etc/wsl.conf content (or defaults in its absence),
87 the status ouput will tag checkout files as EXECUTABLE or NOEXEC.
88
89 <h3>Continuation of Simple Example</h3>
90
91 * In the same checkout as above "Simple Example", on WSL,
92 run "fossil revert" to correct all those errant X-bit values.
93
94 * Run "fossil status" again in WSL to verify absence of toggled X-bits.
95
96 * Run "ls -l" from WSL to find two files, one with its X-bit set
97 and the other with it clear.
98
99 * From Windows, perform these steps on each of those files:<br>
100 &nbsp;&nbsp;(1) read the_file content into a buffer<br>
101 &nbsp;&nbsp;(2) rename the_file the_file.bak<br>
102 &nbsp;&nbsp;(3) write buffer content to new file, the_file<br>
103 &nbsp;&nbsp;(4) del the_file.bak (or leave it)<br>
104 &nbsp;&nbsp;(Note that this sequence is similar to what many editors do when
105 a user modifies a file then uses undo to reverse the changes.)
106
107 * Run "fossil status" again in WSL and observe that one of the
108 two files has had its X-bit toggled.
109
110 <h3>A Fossil-Only Example</h3>
111
112 * In the another (different) checkout of the same version,
113 somehow cause "legitimate" X-bit toggles of two files whose
114 X-bits differ. (This "somehow" probably will involve WSL to
115 toggle file bits and fossil on WSL to commit the toggles.)
116
117 * In the Simple Example checkout, use fossil.exe on Windows
118 to update the checkout, ostensibly bringing the X-bit toggles
119 into the affected checkout files.
120
121 * In the Simple Example checkout, use fossil on WSL to run
122 "fossil status", and observe at least one X-bit discrepancy.
123
124 <h2>Recommended Workflow</h2>
125
126 There are two simple approaches for dealing with this issue when
127 one wishes to continue using the same checkout directory from
128 Windows and WSL. Either one is effective. These are:
129
130 * Do not use fossil on WSL for any operations which will modify
131 the repository. Instead, block those operations in some manner.
132
133 * Do not use any tools on Windows, (including certain subcommands
134 of fossil.exe,) which may modify the X-bits on files within the
135 shared checkout, instead restricting use of Windows tools to those
136 which are known to only (and actually) modify file content in place
137 while preserving X-bit values. (The "actually" proviso emphasizes
138 that tools which only simulate in-place file modification, but do
139

Keyboard Shortcuts

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