tests/test-convert-bzr.t
changeset 16062 718b81e8b876
parent 16061 915e06faa8f3
child 16099 4e4c416a0b1f
equal deleted inserted replaced
16061:915e06faa8f3 16062:718b81e8b876
   216   $ cd repo-trunk
   216   $ cd repo-trunk
   217   $ echo a > a
   217   $ echo a > a
   218   $ bzr add a
   218   $ bzr add a
   219   adding a
   219   adding a
   220   $ bzr ci -qm adda --commit-time '2012-01-01 00:00:01 +0000'
   220   $ bzr ci -qm adda --commit-time '2012-01-01 00:00:01 +0000'
       
   221   $ bzr tag trunk-tag
       
   222   Created tag trunk-tag.
   221   $ bzr switch -b branch
   223   $ bzr switch -b branch
   222   Tree is up to date at revision 1.
   224   Tree is up to date at revision 1.
   223   Switched to branch: *repo/branch/ (glob)
   225   Switched to branch: *repo/branch/ (glob)
   224   $ echo b > b
   226   $ echo b > b
   225   $ bzr add b
   227   $ bzr add b
   226   adding b
   228   adding b
   227   $ bzr ci -qm addb --commit-time '2012-01-01 00:00:02 +0000'
   229   $ bzr ci -qm addb --commit-time '2012-01-01 00:00:02 +0000'
       
   230   $ bzr tag branch-tag
       
   231   Created tag branch-tag.
   228   $ bzr switch --force ../repo/trunk
   232   $ bzr switch --force ../repo/trunk
   229   Updated to revision 1.
   233   Updated to revision 1.
   230   Switched to branch: */repo/trunk/ (glob)
   234   Switched to branch: */repo/trunk/ (glob)
   231   $ echo a >> a
   235   $ echo a >> a
   232   $ bzr ci -qm changea --commit-time '2012-01-01 00:00:03 +0000'
   236   $ bzr ci -qm changea --commit-time '2012-01-01 00:00:03 +0000'
   237   sorting...
   241   sorting...
   238   converting...
   242   converting...
   239   2 adda
   243   2 adda
   240   1 addb
   244   1 addb
   241   0 changea
   245   0 changea
       
   246   updating tags
   242   $ (cd repo-bzr; glog)
   247   $ (cd repo-bzr; glog)
       
   248   o  3@default "update tags" files: .hgtags
       
   249   |
   243   o  2@default "changea" files: a
   250   o  2@default "changea" files: a
   244   |
   251   |
   245   | o  1@branch "addb" files: b
   252   | o  1@branch "addb" files: b
   246   |/
   253   |/
   247   o  0@default "adda" files: a
   254   o  0@default "adda" files: a
   248   
   255   
       
   256 
       
   257 Test tags (converted identifiers are not stable because bzr ones are
       
   258 not and get incorporated in extra fields).
       
   259 
       
   260   $ hg -R repo-bzr tags
       
   261   tip                                3:* (glob)
       
   262   branch-tag                         1:* (glob)
       
   263   trunk-tag                          0:* (glob)