##// END OF EJS Templates
tests: new test for hg diff of a subdirectory only
Giorgos Keramidas -
r2879:66eff835 default
parent child Browse files
Show More
@@ -0,0 +1,27 b''
1 #!/bin/sh
2
3 hg init
4
5 mkdir alpha
6 touch alpha/one
7 mkdir beta
8 touch beta/two
9
10 hg add alpha/one beta/two
11 hg ci -m "start" -d "1000000 0"
12
13 echo 1 > alpha/one
14 echo 2 > beta/two
15
16 echo EVERYTHING
17 hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
18 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
19
20 echo BETA ONLY
21 hg diff beta | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
22 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
23
24 echo INSIDE BETA
25 cd beta
26 hg diff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
27 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
@@ -0,0 +1,23 b''
1 EVERYTHING
2 diff -r ec612a6291f1 alpha/one
3 --- a/alpha/one
4 +++ b/alpha/one
5 @@ -0,0 +1,1 @@
6 +1
7 diff -r ec612a6291f1 beta/two
8 --- a/beta/two
9 +++ b/beta/two
10 @@ -0,0 +1,1 @@
11 +2
12 BETA ONLY
13 diff -r ec612a6291f1 beta/two
14 --- a/beta/two
15 +++ b/beta/two
16 @@ -0,0 +1,1 @@
17 +2
18 INSIDE BETA
19 diff -r ec612a6291f1 beta/two
20 --- a/beta/two
21 +++ b/beta/two
22 @@ -0,0 +1,1 @@
23 +2
General Comments 0
You need to be logged in to leave comments. Login now