Mercurial > hg
comparison tests/test-rhg.t @ 46462:d03b0601e0eb
rhg: initial support for shared repositories
Differential Revision: https://phab.mercurial-scm.org/D9941
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Thu, 14 Jan 2021 13:04:12 +0100 |
parents | f3f4d1b7dc97 |
children | 95b276283b67 |
comparison
equal
deleted
inserted
replaced
46461:f3f4d1b7dc97 | 46462:d03b0601e0eb |
---|---|
216 | 216 |
217 And check that basic rhg commands work with sharing | 217 And check that basic rhg commands work with sharing |
218 | 218 |
219 $ cd repo2 | 219 $ cd repo2 |
220 $ rhg files | 220 $ rhg files |
221 [252] | 221 a |
222 $ rhg cat -r 0 a | 222 $ rhg cat -r 0 a |
223 [252] | 223 a |
224 | 224 |
225 Same with relative sharing | 225 Same with relative sharing |
226 | 226 |
227 $ cd .. | 227 $ cd .. |
228 $ hg share repo2 repo3 --relative | 228 $ hg share repo2 repo3 --relative |
229 updating working directory | 229 updating working directory |
230 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 230 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
231 | 231 |
232 $ cd repo3 | 232 $ cd repo3 |
233 $ rhg files | 233 $ rhg files |
234 [252] | 234 a |
235 $ rhg cat -r 0 a | 235 $ rhg cat -r 0 a |
236 [252] | 236 a |
237 | 237 |
238 Same with share-safe | 238 Same with share-safe |
239 | 239 |
240 $ echo "[format]" >> $HGRCPATH | 240 $ echo "[format]" >> $HGRCPATH |
241 $ echo "use-share-safe = True" >> $HGRCPATH | 241 $ echo "use-share-safe = True" >> $HGRCPATH |