tests/test-subrepo.t
branchstable
changeset 38425 1322ae04d3d7
parent 35704 41ef02ba329b
child 39369 34ba47117164
equal deleted inserted replaced
38335:ae7f27867c2a 38425:1322ae04d3d7
  1939   $ rm -r malicious-proxycommand-clone
  1939   $ rm -r malicious-proxycommand-clone
  1940   $ hg clone malicious-proxycommand malicious-proxycommand-clone
  1940   $ hg clone malicious-proxycommand malicious-proxycommand-clone
  1941   updating to branch default
  1941   updating to branch default
  1942   abort: potentially unsafe url: 'ssh://-oProxyCommand=touch owned@example.com/path' (in subrepository "s")
  1942   abort: potentially unsafe url: 'ssh://-oProxyCommand=touch owned@example.com/path' (in subrepository "s")
  1943   [255]
  1943   [255]
       
  1944 
       
  1945 Test convert subrepositories including merge (issue5526):
       
  1946 
       
  1947   $ hg init tconv
       
  1948   $ hg convert --config extensions.convert= -q t/s tconv/s
       
  1949   $ hg convert --config extensions.convert= -q t/s/ss tconv/s/ss
       
  1950   $ hg convert --config extensions.convert= -q t/t tconv/t
       
  1951 
       
  1952  convert shouldn't fail because of pseudo filenode:
       
  1953 
       
  1954   $ hg convert --config extensions.convert= t tconv
       
  1955   scanning source...
       
  1956   sorting...
       
  1957   converting...
       
  1958   17 0
       
  1959   16 1
       
  1960   15 2
       
  1961   14 3
       
  1962   13 4
       
  1963   12 5
       
  1964   11 6
       
  1965   10 7
       
  1966   9 8
       
  1967   8 9
       
  1968   7 10
       
  1969   6 11
       
  1970   5 12
       
  1971   4 13
       
  1972   3 rm2
       
  1973   2 phasecheck4
       
  1974   1 16
       
  1975   0 branch before subrepo add
       
  1976 
       
  1977  converted .hgsubstate should point to valid nodes:
       
  1978 
       
  1979   $ hg up -R tconv 9
       
  1980   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
  1981   $ cat tconv/.hgsubstate
       
  1982   fc627a69481fcbe5f1135069e8a3881c023e4cf5 s
       
  1983   60ca1237c19474e7a3978b0dc1ca4e6f36d51382 t