[darcs-devel] [issue885] Regression: "darcs get --to-match" does not work anymore under 2.0

Lele Gaifax bugs at darcs.net
Thu May 29 13:51:30 UTC 2008


New submission from Lele Gaifax <lele at nautilus.homeip.net>:

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 at nautilus.homeip.net |                 -- Fortunato Depero, 1929.

----------
messages: 4876
nosy: beschmi, dagit, lele, tommy
status: unread
title: Regression: "darcs get --to-match" does not work anymore under 2.0

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue885>
__________________________________


More information about the darcs-devel mailing list