tests/test-subrepo-relative-path.t
branchstable
changeset 36687 eed02e192770
parent 36686 0c14b3f23294
child 36688 fb278041df06
equal deleted inserted replaced
36686:0c14b3f23294 36687:eed02e192770
    82   $ echo "sub = http://localhost:$HGPORT/sub" > .hgsub
    82   $ echo "sub = http://localhost:$HGPORT/sub" > .hgsub
    83   $ hg ci -Am 'add absolute subrepo'
    83   $ hg ci -Am 'add absolute subrepo'
    84   adding .hgsub
    84   adding .hgsub
    85   $ cd ..
    85   $ cd ..
    86 
    86 
    87 BUG: Remote subrepos cannot be shared, and pooled repos don't have their
    87 Clone pooling works for local clones with a remote subrepo reference.
    88 relative subrepos in the relative location stated in .hgsub.
    88 
       
    89 BUG: subrepos should be shared out of the pool.
    89 
    90 
    90   $ hg --config extensions.share= --config share.pool=$TESTTMP/pool \
    91   $ hg --config extensions.share= --config share.pool=$TESTTMP/pool \
    91   >    clone absolute_subrepo cloned_from_abs
    92   >    clone absolute_subrepo cloned_from_abs
    92   (sharing from new pooled repository 8d6a2f1e993b34b6557de0042cfe825ae12a8dae)
    93   (sharing from new pooled repository 8d6a2f1e993b34b6557de0042cfe825ae12a8dae)
    93   requesting all changes
    94   requesting all changes
    97   added 2 changesets with 3 changes to 3 files
    98   added 2 changesets with 3 changes to 3 files
    98   new changesets 8d6a2f1e993b:c6d0e6ebd1c9
    99   new changesets 8d6a2f1e993b:c6d0e6ebd1c9
    99   searching for changes
   100   searching for changes
   100   no changes found
   101   no changes found
   101   updating working directory
   102   updating working directory
   102   sharing subrepo sub from http://localhost:$HGPORT/sub
   103   cloning subrepo sub from http://localhost:$HGPORT/sub
   103   abort: can only share local repositories (in subrepository "sub")
   104   requesting all changes
   104   [255]
   105   adding changesets
       
   106   adding manifests
       
   107   adding file changes
       
   108   added 1 changesets with 1 changes to 1 files
       
   109   new changesets 863c1745b441
       
   110   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   111 
       
   112 Vanilla sharing with a subrepo remote path reference will clone the subrepo.
       
   113 Each share of these top level repos will end up with independent subrepo copies
       
   114 (potentially leaving the shared parent with dangling cset references).
   105 
   115 
   106   $ hg --config extensions.share= share absolute_subrepo shared_from_abs
   116   $ hg --config extensions.share= share absolute_subrepo shared_from_abs
   107   updating working directory
   117   updating working directory
   108   sharing subrepo sub from http://localhost:$HGPORT/sub
   118   cloning subrepo sub from http://localhost:$HGPORT/sub
   109   abort: can only share local repositories (in subrepository "sub")
   119   requesting all changes
   110   [255]
   120   adding changesets
       
   121   adding manifests
       
   122   adding file changes
       
   123   added 1 changesets with 1 changes to 1 files
       
   124   new changesets 863c1745b441
       
   125   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
   111 
   126 
   112   $ hg --config extensions.share= share -U absolute_subrepo shared_from_abs2
   127   $ hg --config extensions.share= share -U absolute_subrepo shared_from_abs2
   113   $ hg -R shared_from_abs2 update -r tip
   128   $ hg -R shared_from_abs2 update -r tip
   114   sharing subrepo sub from http://localhost:$HGPORT/sub
   129   cloning subrepo sub from http://localhost:$HGPORT/sub
   115   abort: can only share local repositories (in subrepository "sub")
   130   requesting all changes
   116   [255]
   131   adding changesets
       
   132   adding manifests
       
   133   adding file changes
       
   134   added 1 changesets with 1 changes to 1 files
       
   135   new changesets 863c1745b441
       
   136   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
   117 
   137 
   118 BUG: A repo without its subrepo available locally should be sharable if the
   138 A parent repo without its subrepo available locally can be shared if the
   119 subrepo is referenced by absolute path.
   139 subrepo is referenced by absolute path.
   120 
   140 
   121   $ hg clone -U absolute_subrepo cloned_null_from_abs
   141   $ hg clone -U absolute_subrepo cloned_null_from_abs
   122   $ hg --config extensions.share= share cloned_null_from_abs shared_from_null_abs
   142   $ hg --config extensions.share= share cloned_null_from_abs shared_from_null_abs
   123   updating working directory
   143   updating working directory
   124   sharing subrepo sub from http://localhost:$HGPORT/sub
   144   cloning subrepo sub from http://localhost:$HGPORT/sub
   125   abort: can only share local repositories (in subrepository "sub")
   145   requesting all changes
   126   [255]
   146   adding changesets
       
   147   adding manifests
       
   148   adding file changes
       
   149   added 1 changesets with 1 changes to 1 files
       
   150   new changesets 863c1745b441
       
   151   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
   127 
   152 
   128   $ killdaemons.py
   153   $ killdaemons.py
   129 
   154 
   130 subrepo paths with ssh urls
   155 subrepo paths with ssh urls
   131 
   156