tests/test-merge-subrepos.t
changeset 33365 6d88468d435b
parent 33364 bf2daeddd42b
child 33366 062c1bde1781
equal deleted inserted replaced
33364:bf2daeddd42b 33365:6d88468d435b
    19   $ cd ..
    19   $ cd ..
    20 
    20 
    21 Should fail, since there are added files to subrepo:
    21 Should fail, since there are added files to subrepo:
    22 
    22 
    23   $ hg merge
    23   $ hg merge
    24   abort: uncommitted changes in subrepository 'subrepo'
    24   abort: uncommitted changes in subrepository "subrepo"
    25   [255]
    25   [255]
    26 
    26 
    27 Deleted files trigger a '+' marker in top level repos.  Deleted files are also
    27 Deleted files trigger a '+' marker in top level repos.  Deleted files are also
    28 noticed by `update --check` in the top level repo.
    28 noticed by `update --check` in the top level repo.
    29 
    29 
    78   $ echo mod > subrepo/b
    78   $ echo mod > subrepo/b
    79   $ hg st -S
    79   $ hg st -S
    80   M subrepo/b
    80   M subrepo/b
    81 
    81 
    82   $ hg up -r '.^' --check
    82   $ hg up -r '.^' --check
    83   abort: uncommitted changes in subrepository 'subrepo'
    83   abort: uncommitted changes in subrepository "subrepo"
    84   [255]
    84   [255]
    85 
    85 
    86   $ hg sum
    86   $ hg sum
    87   parent: 4:9bfe45a197d7 tip
    87   parent: 4:9bfe45a197d7 tip
    88    change b
    88    change b
   101 
   101 
   102 `hg update --check` notices a subrepo with a missing file, like it notices a
   102 `hg update --check` notices a subrepo with a missing file, like it notices a
   103 missing file in the top level repo.
   103 missing file in the top level repo.
   104 
   104 
   105   $ hg up -r '.^' --check
   105   $ hg up -r '.^' --check
   106   abort: uncommitted changes in subrepository 'subrepo'
   106   abort: uncommitted changes in subrepository "subrepo"
   107   [255]
   107   [255]
   108 
   108 
   109   $ hg up -r '.^' --config ui.interactive=True << EOF
   109   $ hg up -r '.^' --config ui.interactive=True << EOF
   110   > c
   110   > c
   111   > EOF
   111   > EOF
   124   $ rm subrepo/c
   124   $ rm subrepo/c
   125 
   125 
   126 Merge sees deleted subrepo files as an uncommitted change
   126 Merge sees deleted subrepo files as an uncommitted change
   127 
   127 
   128   $ hg merge @other
   128   $ hg merge @other
   129   abort: uncommitted changes in subrepository 'subrepo'
   129   abort: uncommitted changes in subrepository "subrepo"
   130   [255]
   130   [255]