tests/test-subrepo.t
changeset 39396 34ba47117164
parent 37878 1322ae04d3d7
child 40440 69d4c8c5c25e
equal deleted inserted replaced
39395:5b1d406b39f1 39396:34ba47117164
  1064   test
  1064   test
  1065   test
  1065   test
  1066   $ hg cat sub/repo/foo -Tjson | sed 's|\\\\|/|g'
  1066   $ hg cat sub/repo/foo -Tjson | sed 's|\\\\|/|g'
  1067   [
  1067   [
  1068    {
  1068    {
  1069     "abspath": "foo",
       
  1070     "data": "test\ntest\n",
  1069     "data": "test\ntest\n",
  1071     "path": "sub/repo/foo"
  1070     "path": "foo"
  1072    }
  1071    }
  1073   ]
  1072   ]
  1074 
  1073 
  1075  non-exact match:
  1074  non-exact match:
  1076 
  1075 
  1077   $ hg cat -T '{path}\n' 'glob:**'
  1076   $ hg cat -T '{path|relpath}\n' 'glob:**'
  1078   .hgsub
  1077   .hgsub
  1079   .hgsubstate
  1078   .hgsubstate
  1080   sub/repo/foo
  1079   sub/repo/foo
  1081   $ hg cat -T '{path}\n' 're:^sub'
  1080   $ hg cat -T '{path|relpath}\n' 're:^sub'
  1082   sub/repo/foo
  1081   sub/repo/foo
  1083 
  1082 
  1084  missing subrepos in working directory:
  1083  missing subrepos in working directory:
  1085 
  1084 
  1086   $ mkdir -p tmp/sub/repo
  1085   $ mkdir -p tmp/sub/repo