Mercurial > hg
comparison tests/test-subrepo-git.t @ 12993:a91334380699
subrepo: cloning and updating of git subrepos
gitsubrepo based on patch from David Soria Parra:
http://bitbucket.org/segv/davids-poor-git-subrepo-attempt/
author | Eric Eisner <ede@mit.edu> |
---|---|
date | Sun, 14 Nov 2010 18:20:13 -0500 |
parents | 2b73a3279a9f |
children | 845c602b8635 |
comparison
equal
deleted
inserted
replaced
12992:2b73a3279a9f | 12993:a91334380699 |
---|---|
54 committing subrepository $TESTTMP/t/s | 54 committing subrepository $TESTTMP/t/s |
55 $ hg debugsub | 55 $ hg debugsub |
56 path s | 56 path s |
57 source ../gitroot | 57 source ../gitroot |
58 revision 126f2a14290cd5ce061fdedc430170e8d39e1c5a | 58 revision 126f2a14290cd5ce061fdedc430170e8d39e1c5a |
59 | |
60 clone root | |
61 | |
62 $ hg clone . ../tc | |
63 updating to branch default | |
64 cloning subrepo s | |
65 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
66 $ cd ../tc | |
67 $ hg debugsub | |
68 path s | |
69 source ../gitroot | |
70 revision 126f2a14290cd5ce061fdedc430170e8d39e1c5a | |
71 | |
72 update to previous substate | |
73 | |
74 $ hg update 1 | |
75 checking out detached HEAD in subrepo s | |
76 check out a git branch if you intend to make changes | |
77 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
78 $ cat s/g | |
79 g | |
80 $ hg debugsub | |
81 path s | |
82 source ../gitroot | |
83 revision da5f5b1d8ffcf62fb8327bcd3c89a4367a6018e7 |