3 # Issue885: Regression: "darcs get --to-match" does not work anymore under 2.0
7 ## I would use the builtin !, but that has the wrong semantics.
8 not
() { "$@" && exit 1 ||
:; }
16 darcs record
-am 'first'
17 firsthash
=`darcs changes --xml | grep 'hash=' | sed -e "s/.*hash='//" -e "s/'>//"`
20 darcs record
-am 'second'
22 # Pulling that patch works ok
28 echo darcs pull
-v -a --match "hash $firsthash" ..
/temp1
29 darcs pull
-v -a --match "hash $firsthash" ..
/temp1
31 # Getting up-to that patch does not
34 echo darcs get
-v --to-match "hash $firsthash" temp1 temp3
35 darcs get
-v --to-match "hash $firsthash" temp1 temp3