comparison tests/test-subrepo-relative-path.t @ 15447:9910f60a37ee

tests: make (glob) on windows accept \ instead of / Globbing is usually used for filenames, so on windows it is reasonable and very convenient that glob patterns accepts '\' or '/' when the pattern specifies '/'.
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 07 Nov 2011 03:25:10 +0100
parents c5c9ca3719f9
children d8fa35c28335
comparison
equal deleted inserted replaced
15446:c5c9ca3719f9 15447:9910f60a37ee
3 Preparing the subrepository 'sub' 3 Preparing the subrepository 'sub'
4 4
5 $ hg init sub 5 $ hg init sub
6 $ echo sub > sub/sub 6 $ echo sub > sub/sub
7 $ hg add -R sub 7 $ hg add -R sub
8 adding sub/sub 8 adding sub/sub (glob)
9 $ hg commit -R sub -m "sub import" 9 $ hg commit -R sub -m "sub import"
10 10
11 Preparing the 'main' repo which depends on the subrepo 'sub' 11 Preparing the 'main' repo which depends on the subrepo 'sub'
12 12
13 $ hg init main 13 $ hg init main
15 $ echo "sub = ../sub" > main/.hgsub 15 $ echo "sub = ../sub" > main/.hgsub
16 $ hg clone sub main/sub 16 $ hg clone sub main/sub
17 updating to branch default 17 updating to branch default
18 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 18 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
19 $ hg add -R main 19 $ hg add -R main
20 adding main/.hgsub 20 adding main/.hgsub (glob)
21 adding main/main 21 adding main/main (glob)
22 $ hg commit -R main -m "main import" 22 $ hg commit -R main -m "main import"
23 committing subrepository sub 23 committing subrepository sub
24 24
25 Cleaning both repositories, just as a clone -U 25 Cleaning both repositories, just as a clone -U
26 26