tests/test-exchange-B3.t
branchmercurial-4.0
changeset 2278 2db189baf8b7
parent 2260 e200dbfb4515
parent 2277 61d885899466
child 2279 347849e17876
child 2318 523855eb28c1
equal deleted inserted replaced
2260:e200dbfb4515 2278:2db189baf8b7
     1 
       
     2 
       
     3 Initial setup
       
     4 
       
     5   $ . $TESTDIR/testlib/exchange-util.sh
       
     6 
       
     7 === B.3 Pruned changeset on non-pushed part of the history ===
       
     8 
       
     9 .. {{{
       
    10 ..   ⊗ C
       
    11 ..   |
       
    12 ..   ○ B
       
    13 ..   | ◔ A
       
    14 ..   |/
       
    15 ..   ● O
       
    16 .. }}}
       
    17 ..
       
    18 .. Marker exist from:
       
    19 ..
       
    20 ..  * C (prune)
       
    21 ..
       
    22 .. Command run:
       
    23 ..
       
    24 ..  * hg push -r A
       
    25 ..  * hg push
       
    26 ..
       
    27 .. Expected exchange:
       
    28 ..
       
    29 ..  * ø
       
    30 ..
       
    31 .. Expected Exclude:
       
    32 ..
       
    33 ..  * chain from B
       
    34 
       
    35 
       
    36   $ setuprepos B.3
       
    37   creating test repo for test case B.3
       
    38   - pulldest
       
    39   - main
       
    40   - pushdest
       
    41   cd into `main` and proceed with env setup
       
    42   $ cd main
       
    43   $ mkcommit A
       
    44   $ hg up --quiet 0
       
    45   $ mkcommit B
       
    46   created new head
       
    47   $ mkcommit C
       
    48   $ hg prune -qd '0 0' .
       
    49   $ hg log -G --hidden
       
    50   x  e56289ab6378 (draft): C
       
    51   |
       
    52   @  35b183996678 (draft): B
       
    53   |
       
    54   | o  f5bc6836db60 (draft): A
       
    55   |/
       
    56   o  a9bdc8b26820 (public): O
       
    57   
       
    58   $ hg debugobsolete
       
    59   e56289ab6378dc752fd7965f8bf66b58bda740bd 0 {35b1839966785d5703a01607229eea932db42f87} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    60   $ hg debugobsrelsethashtree
       
    61   a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04 0000000000000000000000000000000000000000
       
    62   f5bc6836db60e308a17ba08bf050154ba9c4fad7 0000000000000000000000000000000000000000
       
    63   35b1839966785d5703a01607229eea932db42f87 631ab4cd02ffa1d144dc8f32a18be574076031e3
       
    64   e56289ab6378dc752fd7965f8bf66b58bda740bd 47c9d2d8db5d4b1eddd0266329ad260ccc84772c
       
    65   $ hg debugobshashrange --subranges --rev 'head()'
       
    66            rev         node        index         size        depth      obshash
       
    67              2 35b183996678            0            2            2 631ab4cd02ff
       
    68              1 f5bc6836db60            0            2            2 000000000000
       
    69              2 35b183996678            1            1            2 631ab4cd02ff
       
    70              0 a9bdc8b26820            0            1            1 000000000000
       
    71              1 f5bc6836db60            1            1            2 000000000000
       
    72   $ cd ..
       
    73   $ cd ..
       
    74 
       
    75 
       
    76 Actual Test
       
    77 -----------------------------------
       
    78 
       
    79   $ dotest B.3 A
       
    80   ## Running testcase B.3
       
    81   # testing echange of "A" (f5bc6836db60)
       
    82   ## initial state
       
    83   # obstore: main
       
    84   e56289ab6378dc752fd7965f8bf66b58bda740bd 0 {35b1839966785d5703a01607229eea932db42f87} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    85   # obstore: pushdest
       
    86   # obstore: pulldest
       
    87   ## pushing "A" from main to pushdest
       
    88   pushing to pushdest
       
    89   searching for changes
       
    90   remote: adding changesets
       
    91   remote: adding manifests
       
    92   remote: adding file changes
       
    93   remote: added 1 changesets with 1 changes to 1 files
       
    94   ## post push state
       
    95   # obstore: main
       
    96   e56289ab6378dc752fd7965f8bf66b58bda740bd 0 {35b1839966785d5703a01607229eea932db42f87} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    97   # obstore: pushdest
       
    98   # obstore: pulldest
       
    99   ## pulling "f5bc6836db60" from main into pulldest
       
   100   pulling from main
       
   101   searching for changes
       
   102   adding changesets
       
   103   adding manifests
       
   104   adding file changes
       
   105   added 1 changesets with 1 changes to 1 files
       
   106   (run 'hg update' to get a working copy)
       
   107   ## post pull state
       
   108   # obstore: main
       
   109   e56289ab6378dc752fd7965f8bf66b58bda740bd 0 {35b1839966785d5703a01607229eea932db42f87} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
   110   # obstore: pushdest
       
   111   # obstore: pulldest
       
   112