tests/test-bookmarks.t
changeset 32482 579df5aaa425
parent 32451 bce5ebe72859
child 32735 d7522f983f37
equal deleted inserted replaced
32481:a87dabb053d0 32482:579df5aaa425
   318   bookmark db815d6d32e6 matches a changeset hash
   318   bookmark db815d6d32e6 matches a changeset hash
   319   (did you leave a -r out of an 'hg bookmark' command?)
   319   (did you leave a -r out of an 'hg bookmark' command?)
   320   $ hg bookmark -d 925d80f479bb
   320   $ hg bookmark -d 925d80f479bb
   321   $ hg bookmark -d db815d6d32e6
   321   $ hg bookmark -d db815d6d32e6
   322 
   322 
       
   323   $ cd ..
       
   324 
       
   325 bookmark with a name that matches an ambiguous node id
       
   326 
       
   327   $ hg init ambiguous
       
   328   $ cd ambiguous
       
   329   $ echo 0 > a
       
   330   $ hg ci -qAm 0
       
   331   $ for i in 1057 2857 4025; do
       
   332   >   hg up -q 0
       
   333   >   echo $i > a
       
   334   >   hg ci -qm $i
       
   335   > done
       
   336   $ hg up -q null
       
   337   $ hg log -r0: -T '{rev}:{node}\n'
       
   338   0:b4e73ffab476aa0ee32ed81ca51e07169844bc6a
       
   339   1:c56256a09cd28e5764f32e8e2810d0f01e2e357a
       
   340   2:c5623987d205cd6d9d8389bfc40fff9dbb670b48
       
   341   3:c562ddd9c94164376c20b86b0b4991636a3bf84f
       
   342 
       
   343   $ hg bookmark -r0 c562
       
   344   $ hg bookmarks
       
   345      c562                      0:b4e73ffab476
       
   346 
       
   347   $ cd ..
       
   348 
   323 incompatible options
   349 incompatible options
       
   350 
       
   351   $ cd repo
   324 
   352 
   325   $ hg bookmark -m Y -d Z
   353   $ hg bookmark -m Y -d Z
   326   abort: --delete and --rename are incompatible
   354   abort: --delete and --rename are incompatible
   327   [255]
   355   [255]
   328 
   356