comparison tests/test-share.t @ 23614:cd79fb4d75fd

share: add option to share bookmarks This patch adds the -B/--bookmarks option to the share command added by the share extension. All it does for now is create a marker, 'bookmarks.shared', that will be used by future code to implement the sharing functionality.
author Ryan McElroy <rmcelroy@fb.com>
date Sat, 13 Dec 2014 11:32:46 -0800
parents 141baca16059
children 4d2b9b304ad0
comparison
equal deleted inserted replaced
23613:7b8ff3fd11d3 23614:cd79fb4d75fd
127 c2e0ac586386 tip 127 c2e0ac586386 tip
128 128
129 $ cd .. 129 $ cd ..
130 130
131 131
132 test sharing bookmarks (manually add bookmarks.shared file for now) 132 test sharing bookmarks
133 133
134 $ hg share repo1 repo3 && touch repo3/.hg/bookmarks.shared 134 $ hg share -B repo1 repo3
135 updating working directory 135 updating working directory
136 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 136 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
137 $ cd repo1 137 $ cd repo1
138 $ hg bookmark bm1 138 $ hg bookmark bm1
139 $ hg bookmarks 139 $ hg bookmarks
210 bm4 5:92793bfc8cad 210 bm4 5:92793bfc8cad
211 $ cd .. 211 $ cd ..
212 212
213 test behavior when sharing a shared repo 213 test behavior when sharing a shared repo
214 214
215 $ hg share repo3 repo5 && touch repo5/.hg/bookmarks.shared 215 $ hg share -B repo3 repo5
216 updating working directory 216 updating working directory
217 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 217 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
218 $ cd repo5 218 $ cd repo5
219 $ hg book 219 $ hg book
220 bm1 3:b87954705719 220 bm1 3:b87954705719