tests/test-topic-rebase.t
branchmercurial-4.3
changeset 3818 f8677cb11dcb
parent 3418 85cdce113c2c
child 3936 537fd9a86c06
equal deleted inserted replaced
3817:5ca297e78f2c 3818:f8677cb11dcb
    69 Rebase the commit
    69 Rebase the commit
    70   $ hg update --rev 1
    70   $ hg update --rev 1
    71   switching to topic myfeature
    71   switching to topic myfeature
    72   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    72   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    73   $ hg rebase
    73   $ hg rebase
    74   rebasing 1:39e7a938055e "add feature1" (myfeature)
    74   rebasing 1:39e7a938055e "add feature1"
    75   switching to topic myfeature
    75   switching to topic myfeature
    76   $ hg stack
    76   $ hg stack
    77   ### topic: myfeature
    77   ### topic: myfeature
    78   ### target: default (branch)
    78   ### target: default (branch)
    79   t1@ add feature1 (current)
    79   t1@ add feature1 (current)
   119 Rebase the topic
   119 Rebase the topic
   120   $ hg update --rev 5
   120   $ hg update --rev 5
   121   switching to topic myotherfeature
   121   switching to topic myotherfeature
   122   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   122   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   123   $ hg rebase
   123   $ hg rebase
   124   rebasing 5:81f854012ec5 "myotherfeature1" (myotherfeature)
   124   rebasing 5:81f854012ec5 "myotherfeature1"
   125   merging file
   125   merging file
   126   warning: conflicts while merging file! (edit, then use 'hg resolve --mark')
   126   warning: conflicts while merging file! (edit, then use 'hg resolve --mark')
   127   switching to topic myotherfeature
   127   switching to topic myotherfeature
   128   unresolved conflicts (see hg resolve, then hg rebase --continue)
   128   unresolved conflicts (see hg resolve, then hg rebase --continue)
   129   [1]
   129   [1]
   133   $ echo B >> file
   133   $ echo B >> file
   134   $ hg resolve -m
   134   $ hg resolve -m
   135   (no more unresolved files)
   135   (no more unresolved files)
   136   continue: hg rebase --continue
   136   continue: hg rebase --continue
   137   $ hg rebase --continue
   137   $ hg rebase --continue
   138   rebasing 5:81f854012ec5 "myotherfeature1" (myotherfeature)
   138   rebasing 5:81f854012ec5 "myotherfeature1"
   139 
   139 
   140 Check the the commit has the right topic
   140 Check the the commit has the right topic
   141 
   141 
   142   $ logtopic
   142   $ logtopic
   143   @  7:6ccb9ec4913b64f3ad719ff1ba66495a70bf35a4
   143   @  7:6ccb9ec4913b64f3ad719ff1ba66495a70bf35a4