tests/test-rebase-dest.t
changeset 45771 f90a5c211251
parent 45150 dc5e5577af39
child 45826 21733e8c924f
equal deleted inserted replaced
45770:96fcc37a9c80 45771:f90a5c211251
    18   $ hg rebase
    18   $ hg rebase
    19   abort: you must specify a destination
    19   abort: you must specify a destination
    20   (use: hg rebase -d REV)
    20   (use: hg rebase -d REV)
    21   [255]
    21   [255]
    22   $ hg rebase -d 1
    22   $ hg rebase -d 1
    23   rebasing 2:5db65b93a12b "cc" (tip)
    23   rebasing 2:5db65b93a12b tip "cc"
    24   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/5db65b93a12b-4fb789ec-rebase.hg
    24   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/5db65b93a12b-4fb789ec-rebase.hg
    25   $ hg rebase -d 0 -r . -q
    25   $ hg rebase -d 0 -r . -q
    26   $ HGPLAIN=1 hg rebase
    26   $ HGPLAIN=1 hg rebase
    27   rebasing 2:889b0bc6a730 "cc" (tip)
    27   rebasing 2:889b0bc6a730 tip "cc"
    28   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/889b0bc6a730-41ec4f81-rebase.hg
    28   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/889b0bc6a730-41ec4f81-rebase.hg
    29   $ hg rebase -d 0 -r . -q
    29   $ hg rebase -d 0 -r . -q
    30   $ hg --config commands.rebase.requiredest=False rebase
    30   $ hg --config commands.rebase.requiredest=False rebase
    31   rebasing 2:279de9495438 "cc" (tip)
    31   rebasing 2:279de9495438 tip "cc"
    32   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/279de9495438-ab0a5128-rebase.hg
    32   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/279de9495438-ab0a5128-rebase.hg
    33 
    33 
    34 Requiring dest should not break continue or other rebase options
    34 Requiring dest should not break continue or other rebase options
    35   $ hg up 1 -q
    35   $ hg up 1 -q
    36   $ echo d >> c
    36   $ echo d >> c
    43   o  1 bb
    43   o  1 bb
    44   |
    44   |
    45   o  0 aa
    45   o  0 aa
    46   
    46   
    47   $ hg rebase -d 2
    47   $ hg rebase -d 2
    48   rebasing 3:0537f6b50def "dc" (tip)
    48   rebasing 3:0537f6b50def tip "dc"
    49   merging c
    49   merging c
    50   warning: conflicts while merging c! (edit, then use 'hg resolve --mark')
    50   warning: conflicts while merging c! (edit, then use 'hg resolve --mark')
    51   unresolved conflicts (see 'hg resolve', then 'hg rebase --continue')
    51   unresolved conflicts (see 'hg resolve', then 'hg rebase --continue')
    52   [1]
    52   [1]
    53   $ echo d > c
    53   $ echo d > c
    54   $ hg resolve --mark --all
    54   $ hg resolve --mark --all
    55   (no more unresolved files)
    55   (no more unresolved files)
    56   continue: hg rebase --continue
    56   continue: hg rebase --continue
    57   $ hg rebase --continue
    57   $ hg rebase --continue
    58   rebasing 3:0537f6b50def "dc" (tip)
    58   rebasing 3:0537f6b50def tip "dc"
    59   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/0537f6b50def-be4c7386-rebase.hg
    59   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/0537f6b50def-be4c7386-rebase.hg
    60 
    60 
    61   $ cd ..
    61   $ cd ..
    62 
    62 
    63 Check rebase.requiredest interaction with pull --rebase
    63 Check rebase.requiredest interaction with pull --rebase
   169   $ rebasewithdag -r A+C+D -d 'null' <<'EOS'
   169   $ rebasewithdag -r A+C+D -d 'null' <<'EOS'
   170   > C D
   170   > C D
   171   > | |
   171   > | |
   172   > A B
   172   > A B
   173   > EOS
   173   > EOS
   174   already rebased 0:426bada5c675 "A" (A)
   174   already rebased 0:426bada5c675 A "A"
   175   already rebased 2:dc0947a82db8 "C" (C)
   175   already rebased 2:dc0947a82db8 C "C"
   176   rebasing 3:004dc1679908 "D" (D tip)
   176   rebasing 3:004dc1679908 D tip "D"
   177   o  4: d8d8601abd5e D
   177   o  4: d8d8601abd5e D
   178   
   178   
   179   o  2: dc0947a82db8 C
   179   o  2: dc0947a82db8 C
   180   |
   180   |
   181   | o  1: fc2b737bb2e5 B
   181   | o  1: fc2b737bb2e5 B
   225   > |  |
   225   > |  |
   226   > B  E
   226   > B  E
   227   > |  |
   227   > |  |
   228   > A  D
   228   > A  D
   229   > EOS
   229   > EOS
   230   rebasing 2:112478962961 "B" (B)
   230   rebasing 2:112478962961 B "B"
   231   rebasing 4:26805aba1e60 "C" (C)
   231   rebasing 4:26805aba1e60 C "C"
   232   rebasing 3:cd488e83d208 "E" (E)
   232   rebasing 3:cd488e83d208 E "E"
   233   rebasing 5:0069ba24938a "F" (F tip)
   233   rebasing 5:0069ba24938a F tip "F"
   234   o  9: d150ff263fc8 F
   234   o  9: d150ff263fc8 F
   235   |
   235   |
   236   o  8: 66f30a1a2eab E
   236   o  8: 66f30a1a2eab E
   237   |
   237   |
   238   | o  7: 93db94ffae0e C
   238   | o  7: 93db94ffae0e C
   252   > |
   252   > |
   253   > B E
   253   > B E
   254   > |\|
   254   > |\|
   255   > A D
   255   > A D
   256   > EOS
   256   > EOS
   257   rebasing 3:a4256619d830 "B" (B)
   257   rebasing 3:a4256619d830 B "B"
   258   rebasing 6:8e139e245220 "C" (C tip)
   258   rebasing 6:8e139e245220 C tip "C"
   259   o    8: d7d1169e9b1c C
   259   o    8: d7d1169e9b1c C
   260   |\
   260   |\
   261   | o    7: 2ed0c8546285 B
   261   | o    7: 2ed0c8546285 B
   262   | |\
   262   | |\
   263   o | |  5: 8fdb2c1feb20 G
   263   o | |  5: 8fdb2c1feb20 G
   281   >   |/
   281   >   |/
   282   >   B E  # E will be ignored, since E^^ is empty
   282   >   B E  # E will be ignored, since E^^ is empty
   283   >   |/
   283   >   |/
   284   >   A
   284   >   A
   285   > EOS
   285   > EOS
   286   rebasing 4:33441538d4aa "F" (F)
   286   rebasing 4:33441538d4aa F "F"
   287   rebasing 6:cf43ad9da869 "G" (G)
   287   rebasing 6:cf43ad9da869 G "G"
   288   rebasing 7:eef94f3b5f03 "H" (H tip)
   288   rebasing 7:eef94f3b5f03 H tip "H"
   289   o  10: b3d84c6666cf H
   289   o  10: b3d84c6666cf H
   290   |
   290   |
   291   | o  5: f585351a92f8 D
   291   | o  5: f585351a92f8 D
   292   |/
   292   |/
   293   o  3: 26805aba1e60 C
   293   o  3: 26805aba1e60 C
   307   $ rebasewithdag -s 'B+C+D' -d 'map(SRC, "B:C,C:D")' <<'EOS'
   307   $ rebasewithdag -s 'B+C+D' -d 'map(SRC, "B:C,C:D")' <<'EOS'
   308   > B C D
   308   > B C D
   309   >  \|/
   309   >  \|/
   310   >   A
   310   >   A
   311   > EOS
   311   > EOS
   312   rebasing 2:dc0947a82db8 "C" (C)
   312   rebasing 2:dc0947a82db8 C "C"
   313   rebasing 1:112478962961 "B" (B)
   313   rebasing 1:112478962961 B "B"
   314   o  5: 5fe9935d5222 B
   314   o  5: 5fe9935d5222 B
   315   |
   315   |
   316   o  4: 12d20731b9e0 C
   316   o  4: 12d20731b9e0 C
   317   |
   317   |
   318   o  3: b18e25de2cf5 D
   318   o  3: b18e25de2cf5 D
   350   >  /| |
   350   >  /| |
   351   > B C D
   351   > B C D
   352   >  \|/
   352   >  \|/
   353   >   A
   353   >   A
   354   > EOS
   354   > EOS
   355   already rebased 1:112478962961 "B" (B)
   355   already rebased 1:112478962961 B "B"
   356   already rebased 2:dc0947a82db8 "C" (C)
   356   already rebased 2:dc0947a82db8 C "C"
   357   already rebased 3:b18e25de2cf5 "D" (D)
   357   already rebased 3:b18e25de2cf5 D "D"
   358   already rebased 4:312782b8f06e "E" (E)
   358   already rebased 4:312782b8f06e E "E"
   359   already rebased 5:ad6717a6a58e "F" (F tip)
   359   already rebased 5:ad6717a6a58e F tip "F"
   360   o  5: ad6717a6a58e F
   360   o  5: ad6717a6a58e F
   361   |
   361   |
   362   o  3: b18e25de2cf5 D
   362   o  3: b18e25de2cf5 D
   363   |
   363   |
   364   | o    4: 312782b8f06e E
   364   | o    4: 312782b8f06e E
   378   > | | |
   378   > | | |
   379   > B E I
   379   > B E I
   380   >  \| |
   380   >  \| |
   381   >   A H
   381   >   A H
   382   > EOS
   382   > EOS
   383   rebasing 4:701514e1408d "I" (I)
   383   rebasing 4:701514e1408d I "I"
   384   rebasing 0:426bada5c675 "A" (A)
   384   rebasing 0:426bada5c675 A "A"
   385   rebasing 1:e7050b6e5048 "H" (H)
   385   rebasing 1:e7050b6e5048 H "H"
   386   rebasing 5:26805aba1e60 "C" (C)
   386   rebasing 5:26805aba1e60 C "C"
   387   rebasing 7:cf89f86b485b "J" (J)
   387   rebasing 7:cf89f86b485b J "J"
   388   rebasing 2:112478962961 "B" (B)
   388   rebasing 2:112478962961 B "B"
   389   rebasing 3:7fb047a69f22 "E" (E)
   389   rebasing 3:7fb047a69f22 E "E"
   390   rebasing 8:f585351a92f8 "D" (D)
   390   rebasing 8:f585351a92f8 D "D"
   391   rebasing 10:ae41898d7875 "K" (K tip)
   391   rebasing 10:ae41898d7875 K tip "K"
   392   rebasing 9:711f53bbef0b "G" (G)
   392   rebasing 9:711f53bbef0b G "G"
   393   rebasing 6:64a8289d2492 "F" (F)
   393   rebasing 6:64a8289d2492 F "F"
   394   o  21: 3735afb3713a F
   394   o  21: 3735afb3713a F
   395   |
   395   |
   396   o  20: 07698142d7a7 G
   396   o  20: 07698142d7a7 G
   397   |
   397   |
   398   o  19: 33aba52e7e72 K
   398   o  19: 33aba52e7e72 K
   431   >    M B          # rebase: F -> F2
   431   >    M B          # rebase: F -> F2
   432   >     \|          # amend: I -> I2
   432   >     \|          # amend: I -> I2
   433   >      A
   433   >      A
   434   > EOF
   434   > EOF
   435   6 new orphan changesets
   435   6 new orphan changesets
   436   rebasing 16:5c432343bf59 "J" (J tip)
   436   rebasing 16:5c432343bf59 J tip "J"
   437   rebasing 3:26805aba1e60 "C" (C)
   437   rebasing 3:26805aba1e60 C "C"
   438   rebasing 6:f585351a92f8 "D" (D)
   438   rebasing 6:f585351a92f8 D "D"
   439   rebasing 10:ffebc37c5d0b "E3" (E3)
   439   rebasing 10:ffebc37c5d0b E3 "E3"
   440   rebasing 13:fb184bcfeee8 "F2" (F2)
   440   rebasing 13:fb184bcfeee8 F2 "F2"
   441   rebasing 11:dc838ab4c0da "G" (G)
   441   rebasing 11:dc838ab4c0da G "G"
   442   o  22: 174f63d574a8 G
   442   o  22: 174f63d574a8 G
   443   |
   443   |
   444   o  21: c9d9fbe76705 F2
   444   o  21: c9d9fbe76705 F2
   445   |
   445   |
   446   o  20: 0a03c2ede755 E3
   446   o  20: 0a03c2ede755 E3