tests/test-subrepo.t
branchstable
changeset 15321 e174353e8cda
parent 15265 460135339d74
child 15409 83c2e6772408
child 15615 41885892796e
equal deleted inserted replaced
15320:681267a5f491 15321:e174353e8cda
       
     1 Let commit recurse into subrepos by default to match pre-2.0 behavior:
       
     2 
       
     3   $ echo "[ui]" >> $HGRCPATH
       
     4   $ echo "commitsubrepos = Yes" >> $HGRCPATH
       
     5 
     1   $ rm -rf sub
     6   $ rm -rf sub
     2   $ mkdir sub
     7   $ mkdir sub
     3   $ cd sub
     8   $ cd sub
     4   $ hg init t
     9   $ hg init t
     5   $ cd t
    10   $ cd t
   105 leave sub dirty (and check ui.commitsubrepos=no aborts the commit)
   110 leave sub dirty (and check ui.commitsubrepos=no aborts the commit)
   106 
   111 
   107   $ echo c > s/a
   112   $ echo c > s/a
   108   $ hg --config ui.commitsubrepos=no ci -m4
   113   $ hg --config ui.commitsubrepos=no ci -m4
   109   abort: uncommitted changes in subrepo s
   114   abort: uncommitted changes in subrepo s
       
   115   (use --subrepos for recursive commit)
   110   [255]
   116   [255]
   111   $ hg ci -m4
   117   $ hg ci -m4
   112   committing subrepository s
   118   committing subrepository s
   113   $ hg tip -R s
   119   $ hg tip -R s
   114   changeset:   3:1c833a7a9e3a
   120   changeset:   3:1c833a7a9e3a