Show More
@@ -196,3 +196,67 b' Specifying revisions by changeset ID' | |||
|
196 | 196 | of |
|
197 | 197 | $ rhg cat -r c3ae8dec9fad of |
|
198 | 198 | r5000 |
|
199 | ||
|
200 | Crate a shared repository | |
|
201 | ||
|
202 | $ echo "[extensions]" >> $HGRCPATH | |
|
203 | $ echo "share = " >> $HGRCPATH | |
|
204 | ||
|
205 | $ cd $TESTTMP | |
|
206 | $ hg init repo1 | |
|
207 | $ cd repo1 | |
|
208 | $ echo a > a | |
|
209 | $ hg commit -A -m'init' | |
|
210 | adding a | |
|
211 | ||
|
212 | $ cd .. | |
|
213 | $ hg share repo1 repo2 | |
|
214 | updating working directory | |
|
215 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
216 | ||
|
217 | And check that basic rhg commands work with sharing | |
|
218 | ||
|
219 | $ cd repo2 | |
|
220 | $ rhg files | |
|
221 | [252] | |
|
222 | $ rhg cat -r 0 a | |
|
223 | [252] | |
|
224 | ||
|
225 | Same with relative sharing | |
|
226 | ||
|
227 | $ cd .. | |
|
228 | $ hg share repo2 repo3 --relative | |
|
229 | updating working directory | |
|
230 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
231 | ||
|
232 | $ cd repo3 | |
|
233 | $ rhg files | |
|
234 | [252] | |
|
235 | $ rhg cat -r 0 a | |
|
236 | [252] | |
|
237 | ||
|
238 | Same with share-safe | |
|
239 | ||
|
240 | $ echo "[format]" >> $HGRCPATH | |
|
241 | $ echo "use-share-safe = True" >> $HGRCPATH | |
|
242 | ||
|
243 | $ cd $TESTTMP | |
|
244 | $ hg init repo4 | |
|
245 | $ cd repo4 | |
|
246 | $ echo a > a | |
|
247 | $ hg commit -A -m'init' | |
|
248 | adding a | |
|
249 | ||
|
250 | $ cd .. | |
|
251 | $ hg share repo4 repo5 | |
|
252 | updating working directory | |
|
253 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
254 | ||
|
255 | And check that basic rhg commands work with sharing | |
|
256 | ||
|
257 | $ cd repo5 | |
|
258 | $ rhg files | |
|
259 | [252] | |
|
260 | $ rhg cat -r 0 a | |
|
261 | [252] | |
|
262 |
General Comments 0
You need to be logged in to leave comments.
Login now