tests/test-bookmarks-pushpull.t
changeset 17189 7199e82d6d8b
parent 17075 28ed1c4511ce
child 17298 59c14bf5a48c
equal deleted inserted replaced
17188:76e55914c303 17189:7199e82d6d8b
   260      X                         1:9b140be10808
   260      X                         1:9b140be10808
   261      Y                         4:4efff6d98829
   261      Y                         4:4efff6d98829
   262      Z                         2:0d2164f0ce0d
   262      Z                         2:0d2164f0ce0d
   263      foo                       -1:000000000000
   263      foo                       -1:000000000000
   264      foobar                    1:9b140be10808
   264      foobar                    1:9b140be10808
   265 
   265  
   266   $ cd ..
   266   $ cd ..
       
   267 
       
   268 Pushing a bookmark should only push the changes required by that
       
   269 bookmark, not all outgoing changes:
       
   270   $ hg clone http://localhost:$HGPORT/ addmarks
       
   271   requesting all changes
       
   272   adding changesets
       
   273   adding manifests
       
   274   adding file changes
       
   275   added 5 changesets with 5 changes to 3 files (+3 heads)
       
   276   updating to branch default
       
   277   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   278   $ cd addmarks
       
   279   $ echo foo > foo
       
   280   $ hg add foo
       
   281   $ hg commit -m 'add foo'
       
   282   $ echo bar > bar
       
   283   $ hg add bar
       
   284   $ hg commit -m 'add bar'
       
   285   $ hg co "tip^"
       
   286   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
       
   287   $ hg book add-foo
       
   288   $ hg book -r tip add-bar
       
   289 Note: this push *must* push only a single changeset, as that's the point
       
   290 of this test.
       
   291   $ hg push -B add-foo
       
   292   pushing to http://localhost:$HGPORT/
       
   293   searching for changes
       
   294   remote: adding changesets
       
   295   remote: adding manifests
       
   296   remote: adding file changes
       
   297   remote: added 1 changesets with 1 changes to 1 files
       
   298   exporting bookmark add-foo
       
   299 
       
   300   $ cd ..