tests/test-rename-dir-merge.t
changeset 23475 67f1d68861fb
parent 23464 73d4f6551798
child 23476 39a12719ec65
equal deleted inserted replaced
23474:9f4ac44a7273 23475:67f1d68861fb
   146   baz
   146   baz
   147 
   147 
   148 Remote directory rename with conflicting file added in remote target directory
   148 Remote directory rename with conflicting file added in remote target directory
   149 and committed in local source directory.
   149 and committed in local source directory.
   150 
   150 
   151 BROKEN: the remote is ignored; it should be merged
       
   152 
       
   153   $ hg co -qC 2
   151   $ hg co -qC 2
   154   $ rm b/c
   152   $ rm b/c
   155   $ hg st -A
   153   $ hg st -A
   156   ? a/d
   154   ? a/d
   157   C a/a
   155   C a/a
   158   C a/b
   156   C a/b
   159   C a/c
   157   C a/c
   160   $ hg merge 5
   158   $ hg merge 5
   161   3 files updated, 0 files merged, 2 files removed, 0 files unresolved
   159   merging a/c and b/c to b/c
   162   (branch merge, don't forget to commit)
   160   warning: conflicts during merge.
       
   161   merging b/c incomplete! (edit conflicts, then use 'hg resolve --mark')
       
   162   2 files updated, 0 files merged, 2 files removed, 1 files unresolved
       
   163   use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
       
   164   [1]
   163   $ hg st -A
   165   $ hg st -A
   164   M b/a
   166   M b/a
   165   M b/b
   167   M b/b
   166   A b/c
   168   M b/c
   167     a/c
   169     a/c
   168   R a/a
   170   R a/a
   169   R a/b
   171   R a/b
   170   R a/c
   172   R a/c
   171   ? a/d
   173   ? a/d
       
   174   ? b/c.orig
   172   $ cat b/c
   175   $ cat b/c
       
   176   <<<<<<< local: ce36d17b18fb  - test: 2 add a/c
   173   baz
   177   baz
       
   178   =======
       
   179   target
       
   180   >>>>>>> other: f1c50ca4f127 - test: new file in target directory
   174 
   181 
   175 Second scenario with two repos:
   182 Second scenario with two repos:
   176 
   183 
   177   $ cd ..
   184   $ cd ..
   178   $ hg init r1
   185   $ hg init r1