tests/test-subrepo-git.t
branchstable
changeset 34985 5e27afeddaee
parent 34984 071cbeba4212
child 34986 828cf35f1de6
equal deleted inserted replaced
34984:071cbeba4212 34985:5e27afeddaee
    84   $ cd ../tc
    84   $ cd ../tc
    85   $ hg debugsub
    85   $ hg debugsub
    86   path s
    86   path s
    87    source   ../gitroot
    87    source   ../gitroot
    88    revision 126f2a14290cd5ce061fdedc430170e8d39e1c5a
    88    revision 126f2a14290cd5ce061fdedc430170e8d39e1c5a
       
    89   $ cd ..
       
    90 
       
    91 clone with subrepo disabled (update should fail)
       
    92 
       
    93   $ hg clone t -U tc2 --config subrepos.allowed=false
       
    94   $ hg update -R tc2 --config subrepos.allowed=false
       
    95   abort: subrepo not allowed
       
    96   (see 'hg help config.subrepos' for details)
       
    97   [255]
       
    98   $ ls tc2
       
    99   a
       
   100 
       
   101   $ hg clone t tc3 --config subrepos.allowed=false
       
   102   updating to branch default
       
   103   abort: subrepo not allowed
       
   104   (see 'hg help config.subrepos' for details)
       
   105   [255]
       
   106   $ ls tc3
       
   107   a
    89 
   108 
    90 update to previous substate
   109 update to previous substate
    91 
   110 
       
   111   $ cd tc
    92   $ hg update 1 -q
   112   $ hg update 1 -q
    93   $ cat s/g
   113   $ cat s/g
    94   g
   114   g
    95   $ hg debugsub
   115   $ hg debugsub
    96   path s
   116   path s