Mercurial > hg
comparison tests/test-narrow-pull.t @ 41042:7db1619af061
tests: add test for narrow+share
For how narrow+share is supposed to work, see
https://www.mercurial-scm.org/wiki/NarrowSharePlan.
Differential Revision: https://phab.mercurial-scm.org/D5276
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 13 Jul 2018 11:26:46 -0700 |
parents | f1186c292d03 |
children | 5c2a4f37eace |
comparison
equal
deleted
inserted
replaced
41041:1e8d9f472ea1 | 41042:7db1619af061 |
---|---|
148 $ hg pull -q -r 1 | 148 $ hg pull -q -r 1 |
149 transaction abort! | 149 transaction abort! |
150 rollback completed | 150 rollback completed |
151 abort: pull failed on remote | 151 abort: pull failed on remote |
152 [255] | 152 [255] |
153 | |
154 Can use 'hg share': | |
155 $ cat >> $HGRCPATH <<EOF | |
156 > [extensions] | |
157 > share= | |
158 > EOF | |
159 | |
160 $ cd .. | |
161 $ hg share narrow2 narrow2-share | |
162 updating working directory | |
163 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
164 $ cd narrow2-share | |
165 $ hg status | |
166 | |
167 We should also be able to unshare without breaking everything: | |
168 $ hg unshare | |
169 $ hg verify | |
170 checking changesets | |
171 checking manifests | |
172 crosschecking files in changesets and manifests | |
173 checking files | |
174 checked 1 changesets with 1 changes to 1 files |