Mercurial > hg
comparison tests/test-subrepo-git.t @ 13087:cca0779b4832
subrepo: lazily update git's local tracking branches
This continues the strategy of separation between hg pull and hg update in
git subrepos by only dealing with git's branches on an update. This behavior
tries to cover the bare essentials of the semantics of git pull in the subrepo
when the parent repo does hg pull and hg update.
author | Eric Eisner <ede@mit.edu> |
---|---|
date | Sun, 28 Nov 2010 17:19:23 -0500 |
parents | f930032aa6d5 |
children | 8cecea387574 |
comparison
equal
deleted
inserted
replaced
13086:8db85e39d59c | 13087:cca0779b4832 |
---|---|
207 adding changesets | 207 adding changesets |
208 adding manifests | 208 adding manifests |
209 adding file changes | 209 adding file changes |
210 added 1 changesets with 1 changes to 1 files | 210 added 1 changesets with 1 changes to 1 files |
211 | 211 |
212 sync to upstream git, distribute changes | |
213 | |
214 $ cd ../ta | |
215 $ hg pull -u -q | |
216 $ cd s | |
217 $ git pull -q | |
218 $ cd .. | |
219 $ hg commit -m 'git upstream sync' | |
220 committing subrepository $TESTTMP/ta/s | |
221 $ hg debugsub | |
222 path s | |
223 source ../gitroot | |
224 revision 32a343883b74769118bb1d3b4b1fbf9156f4dddc | |
225 $ hg push -q | |
226 | |
227 $ cd ../tb | |
228 $ hg pull -q | |
229 $ hg update | |
230 pulling subrepo s | |
231 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
232 $ hg debugsub | |
233 path s | |
234 source ../gitroot | |
235 revision 32a343883b74769118bb1d3b4b1fbf9156f4dddc | |
236 | |
212 update to a revision without the subrepo, keeping the local git repository | 237 update to a revision without the subrepo, keeping the local git repository |
213 | 238 |
214 $ cd ../t | 239 $ cd ../t |
215 $ hg up 0 | 240 $ hg up 0 |
216 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 241 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
228 g | 253 g |
229 | 254 |
230 archive subrepos | 255 archive subrepos |
231 | 256 |
232 $ cd ../t | 257 $ cd ../t |
233 $ hg archive --subrepos -r tip ../archive | 258 $ hg archive --subrepos -r 5 ../archive |
234 pulling subrepo s | 259 pulling subrepo s |
235 $ cd ../archive | 260 $ cd ../archive |
236 $ cat s/f | 261 $ cat s/f |
237 f | 262 f |
238 $ cat s/g | 263 $ cat s/g |
239 g | 264 g |
240 gg | 265 gg |
241 ggg | 266 ggg |
242 |