darcs

Issue 886 Regression: "darcs get --to-match" does not work anymore under 2.0

Title Regression: "darcs get --to-match" does not work anymore under 2.0
Priority bug Status duplicate
Milestone Resolved in
Superseder get --to-match 'hash' => _darcs/tentative_pristine: openBinaryFile: does not exist (2.0.0 Regression)
View: 885
Nosy List darcs-devel, dmitry.kurochkin, kowey, lele, thorkilnaur, tommy, tux_rocker
Assigned To
Topics

Created on 2008-05-29.13:51:30 by lele, last changed 2009-08-27.14:00:01 by admin.

Messages
msg4875 (view) Author: lele Date: 2008-05-29.13:51:28
Hi,

darcs get --to-match 'hash ....' fails with the following message:

  darcs: _darcs/tentative_pristine: openBinaryFile: does not exist (No such file or directory)

as this test shows (I will send a patch introducing it as soon as I
get back the issue number):

#!/bin/sh

set -ev

## I would use the builtin !, but that has the wrong semantics.
not () { "$@" && exit 1 || :; }

rm -rf temp1
mkdir temp1
cd temp1
darcs init
echo first > a
darcs add a
darcs record -am 'first'
firsthash=`darcs changes --xml | grep 'hash=' | sed -e "s/.*hash='//" -e "s/'>//"`
echo second > b
darcs add b
darcs record -am 'second'

cd ..
rm -rf temp2
mkdir temp2
cd temp2
darcs init
echo darcs pull -v -a --match "hash $firsthash" ../temp1
darcs pull -v -a --match "hash $firsthash" ../temp1

cd ..
rm -rf temp3
echo darcs get -v --to-match "hash $firsthash" temp1 temp3
darcs get -v --to-match "hash $firsthash" temp1 temp3

thank you,
ciao, lele.
-- 
nickname: Lele Gaifax    | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas    | comincerò ad aver paura di chi mi copia.
lele@nautilus.homeip.net |                 -- Fortunato Depero, 1929.
History
Date User Action Args
2008-05-29 13:51:30lelecreate
2008-05-29 16:53:00koweysetpriority: bug
status: unread -> duplicate
superseder: + get --to-match 'hash' => _darcs/tentative_pristine: openBinaryFile: does not exist (2.0.0 Regression)
nosy: tommy, beschmi, dagit, lele
2008-06-03 20:09:39tux_rockersetnosy: + tux_rocker
2009-08-06 21:06:18adminsetnosy: + dmitry.kurochkin, simon, kowey, thorkilnaur, - beschmi
2009-08-11 00:15:38adminsetnosy: - dagit
2009-08-25 18:11:32adminsetnosy: + darcs-devel, - simon
2009-08-27 14:00:01adminsetnosy: tommy, kowey, darcs-devel, lele, thorkilnaur, tux_rocker, dmitry.kurochkin