comparison tests/test-diff-subdir @ 2879:66eff8355168

tests: new test for hg diff of a subdirectory only
author Giorgos Keramidas <keramida@ceid.upatras.gr>
date Sun, 13 Aug 2006 23:00:18 +0300
parents
children 51b8d1ca7820
comparison
equal deleted inserted replaced
2878:982c3237c63d 2879:66eff8355168
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/"