tests/test-prune.t
branchmercurial-3.6
changeset 1604 61dd08f4dc62
parent 1564 42c30774e63d
child 1689 60752ed8d2d4
equal deleted inserted replaced
1601:15318c3460bf 1604:61dd08f4dc62
   277 yoinked from test-mq-strip.t
   277 yoinked from test-mq-strip.t
   278 
   278 
   279   $ cd ..
   279   $ cd ..
   280   $ hg init bookmarks
   280   $ hg init bookmarks
   281   $ cd bookmarks
   281   $ cd bookmarks
   282   $ hg debugbuilddag '..<2.*1/2:m<2+3:c<m+3:a<2.:b'
   282   $ hg debugbuilddag '..<2.*1/2:m<2+3:c<m+3:a<2.:b<m+2:d<2.:e<m+1:f'
   283   $ hg bookmark -r 'a' 'todelete'
   283   $ hg bookmark -r 'a' 'todelete'
   284   $ hg bookmark -r 'b' 'B'
   284   $ hg bookmark -r 'b' 'B'
   285   $ hg bookmark -r 'b' 'nostrip'
   285   $ hg bookmark -r 'b' 'nostrip'
   286   $ hg bookmark -r 'c' 'delete'
   286   $ hg bookmark -r 'c' 'delete'
       
   287   $ hg bookmark -r 'd' 'multipledelete1'
       
   288   $ hg bookmark -r 'e' 'multipledelete2'
       
   289   $ hg bookmark -r 'f' 'singlenode1'
       
   290   $ hg bookmark -r 'f' 'singlenode2'
   287   $ hg up -C todelete
   291   $ hg up -C todelete
   288   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   292   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   289   (activating bookmark todelete)
   293   (activating bookmark todelete)
   290   $ hg prune -B nostrip
   294   $ hg prune -B nostrip
   291   bookmark 'nostrip' deleted
   295   bookmark 'nostrip' deleted
   305   $ hg id -ir d62d843c9a01
   309   $ hg id -ir d62d843c9a01
   306   d62d843c9a01
   310   d62d843c9a01
   307   $ hg bookmarks
   311   $ hg bookmarks
   308      B                         10:ff43616e5d0f
   312      B                         10:ff43616e5d0f
   309      delete                    6:2702dd0c91e7
   313      delete                    6:2702dd0c91e7
       
   314      multipledelete1           12:e46a4836065c
       
   315      multipledelete2           13:b4594d867745
       
   316      singlenode1               14:43227190fef8
       
   317      singlenode2               14:43227190fef8
       
   318   $ hg prune -B multipledelete1 -B multipledelete2
       
   319   bookmark 'multipledelete1' deleted
       
   320   bookmark 'multipledelete2' deleted
       
   321   2 changesets pruned
       
   322   $ hg prune -B singlenode1 -B singlenode2
       
   323   bookmark 'singlenode1' deleted
       
   324   bookmark 'singlenode2' deleted
       
   325   1 changesets pruned
       
   326   $ hg prune -B unknownbookmark
       
   327   abort: bookmark 'unknownbookmark' not found
       
   328   [255]
       
   329   $ hg prune -B unknownbookmark1 -B unknownbookmark2
       
   330   abort: bookmark 'unknownbookmark1,unknownbookmark2' not found
       
   331   [255]
       
   332   $ hg prune -B delete -B unknownbookmark
       
   333   abort: bookmark 'unknownbookmark' not found
       
   334   [255]
   310   $ hg prune -B delete
   335   $ hg prune -B delete
   311   bookmark 'delete' deleted
   336   bookmark 'delete' deleted
   312   3 changesets pruned
   337   3 changesets pruned
   313   $ hg tag --remove --local c
   338   $ hg tag --remove --local c
   314   $ hg id -ir 6:2702dd0c91e7
   339   $ hg id -ir 6:2702dd0c91e7
   315   abort: hidden revision '6'!
   340   abort: hidden revision '6'!
   316   (use --hidden to access hidden revisions)
   341   (use --hidden to access hidden revisions)
   317   [255]
   342   [255]
   318 
   343 
   319   $ hg debugobsstorestat
   344   $ hg debugobsstorestat
   320   markers total:                      4
   345   markers total:                      7
   321       for known precursors:           4
   346       for known precursors:           7
   322       with parents data:              [04] (re)
   347       with parents data:              [04] (re)
   323   markers with no successors:         4
   348   markers with no successors:         7
   324                 1 successors:         0
   349                 1 successors:         0
   325                 2 successors:         0
   350                 2 successors:         0
   326       more than 2 successors:         0
   351       more than 2 successors:         0
   327       available  keys:
   352       available  keys:
   328                  user:                4
   353                  user:                7
   329   disconnected clusters:              4
   354   disconnected clusters:              7
   330           any known node:             4
   355           any known node:             7
   331           smallest length:            1
   356           smallest length:            1
   332           longer length:              1
   357           longer length:              1
   333           median length:              1
   358           median length:              1
   334           mean length:                1
   359           mean length:                1
   335       using parents data:             4
   360       using parents data:             7
   336           any known node:             4
   361           any known node:             7
   337           smallest length:            1
   362           smallest length:            1
   338           longer length:              1
   363           longer length:              1
   339           median length:              1
   364           median length:              1
   340           mean length:                1
   365           mean length:                1
   341 
   366 
   345   $ hg up 10
   370   $ hg up 10
   346   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   371   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   347   (leaving bookmark rg)
   372   (leaving bookmark rg)
   348   $ hg bookmark r10
   373   $ hg bookmark r10
   349   $ hg log -G
   374   $ hg log -G
   350   o  11:cd0038e05e1b[rg] (stable/draft) add rg
   375   o  15:cd0038e05e1b[rg] (stable/draft) add rg
   351   |
   376   |
   352   | @  10:ff43616e5d0f[B r10] (stable/draft) r10
   377   | x  14:43227190fef8[] (extinct/draft) r14
   353   |/
   378   | |
   354   o  8:d62d843c9a01[] (stable/draft) r8
   379   | | x  13:b4594d867745[] (extinct/draft) r13
   355   |
   380   | | |
   356   o  7:e7d9710d9fc6[] (stable/draft) r7
   381   | | | x  12:e46a4836065c[] (extinct/draft) r12
   357   |
   382   | | |/
       
   383   | | o  11:bab5d5bf48bd[] (stable/draft) r11
       
   384   | |/
       
   385   +---@  10:ff43616e5d0f[B r10] (stable/draft) r10
       
   386   | |
       
   387   o |  8:d62d843c9a01[] (stable/draft) r8
       
   388   | |
       
   389   o |  7:e7d9710d9fc6[] (stable/draft) r7
       
   390   |/
   358   o    3:2b6d669947cd[] (stable/draft) r3
   391   o    3:2b6d669947cd[] (stable/draft) r3
   359   |\
   392   |\
   360   | o  2:fa942426a6fd[] (stable/draft) r2
   393   | o  2:fa942426a6fd[] (stable/draft) r2
   361   | |
   394   | |
   362   o |  1:66f7d451a68b[] (stable/draft) r1
   395   o |  1:66f7d451a68b[] (stable/draft) r1
   364   o  0:1ea73414a91b[] (stable/draft) r0
   397   o  0:1ea73414a91b[] (stable/draft) r0
   365   
   398   
   366   $ hg prune 11
   399   $ hg prune 11
   367   1 changesets pruned
   400   1 changesets pruned
   368   $ hg log -G
   401   $ hg log -G
   369   @  10:ff43616e5d0f[B r10] (stable/draft) r10
   402   o  15:cd0038e05e1b[rg] (stable/draft) add rg
   370   |
   403   |
   371   o  8:d62d843c9a01[rg] (stable/draft) r8
   404   | x  14:43227190fef8[] (extinct/draft) r14
   372   |
   405   | |
   373   o  7:e7d9710d9fc6[] (stable/draft) r7
   406   | | x  13:b4594d867745[] (extinct/draft) r13
   374   |
   407   | | |
       
   408   | | | x  12:e46a4836065c[] (extinct/draft) r12
       
   409   | | |/
       
   410   | | x  11:bab5d5bf48bd[] (extinct/draft) r11
       
   411   | |/
       
   412   +---@  10:ff43616e5d0f[B r10] (stable/draft) r10
       
   413   | |
       
   414   o |  8:d62d843c9a01[] (stable/draft) r8
       
   415   | |
       
   416   o |  7:e7d9710d9fc6[] (stable/draft) r7
       
   417   |/
   375   o    3:2b6d669947cd[] (stable/draft) r3
   418   o    3:2b6d669947cd[] (stable/draft) r3
   376   |\
   419   |\
   377   | o  2:fa942426a6fd[] (stable/draft) r2
   420   | o  2:fa942426a6fd[] (stable/draft) r2
   378   | |
   421   | |
   379   o |  1:66f7d451a68b[] (stable/draft) r1
   422   o |  1:66f7d451a68b[] (stable/draft) r1
   385   1 changesets pruned
   428   1 changesets pruned
   386   $ hg book
   429   $ hg book
   387      B                         8:d62d843c9a01
   430      B                         8:d62d843c9a01
   388    * CELESTE                   8:d62d843c9a01
   431    * CELESTE                   8:d62d843c9a01
   389      r10                       8:d62d843c9a01
   432      r10                       8:d62d843c9a01
   390      rg                        8:d62d843c9a01
   433      rg                        15:cd0038e05e1b
   391 
   434