[darcs-users] [NOOB] Send doesn't work with one patch?

Corey Jewett corey at syntheticplayground.com
Mon Oct 17 21:34:43 UTC 2005


So then the other response I received was spot on. The error message 
could just be a lot better.

Thx guys.

Corey


On Oct 17, 2005, at 15:11, Serguey Zefirov wrote:

> Corey Jewett wrote:
>> I've followed darcs for quite a while and finally started using it. 
>> Darcs 1.0.3, OS X 1.3.9, pre-compiled binary.
>> Send does not seem to work for a single patch repository:
>>     Titus:~ corey$ cd /tmp/
>>     Titus:/tmp corey$ mkdir dbug
>>     Titus:/tmp corey$ cd dbug/
>>     Titus:/tmp/dbug corey$ dd if=/dev/zero of=zero.txt bs=1024 count=1
>>     1+0 records in
>>     1+0 records out
>>     1024 bytes transferred in 0.000199 secs (5143673 bytes/sec)
>>     Titus:/tmp/dbug corey$ ls -l
>>     total 8
>>     -rw-r--r--  1 corey  wheel  1024 17 Oct 10:02 zero.txt
>>     Titus:/tmp/dbug corey$ darcs init
>>     Titus:/tmp/dbug corey$ darcs add zero.txt
>>     Titus:/tmp/dbug corey$ darcs record --all
>>     Darcs needs to know what name (conventionally an email address) 
>> to use as the
>>     patch author, e.g. 'Fred Bloggs <fred at bloggs.invalid>'.  If you 
>> provide one
>>     now it will be stored in the file '_darcs/prefs/author' and used 
>> as a default
>>     in the future.  To change your preferred author address, simply 
>> delete or edit
>>     this file.
>>         What is your email address? cj at syntheticplayground.com
>>     What is the patch name? test
>>     Do you want to add a long comment? [yn] n
>>     Finished recording patch 'test'
>>     Titus:/tmp/dbug corey$ darcs send --all --dont-sign -s 
>> --output=/tmp/patch .
>>     No recorded local changes to send!
>> However pushing works fine:
>>     Titus:/tmp/dbug corey$ mkdir ../dbug2
>>     Titus:/tmp/dbug corey$ pushd ../dbug2;
>>     /tmp/dbug2 /tmp/dbug
>>     Titus:/tmp/dbug2 corey$ darcs init
>>     Titus:/tmp/dbug2 corey$ popd
>>     /tmp/dbug
>>     Titus:/tmp/dbug corey$ darcs push -a ../dbug2
>>     Finished applying...
>>         Titus:/tmp/dbug corey$ ls -l ../dbug2
>>     total 8
>>     drwxr-xr-x  7 corey  wheel   238 17 Oct 10:09 _darcs
>>     -rw-r--r--  1 corey  wheel  1024 17 Oct 10:09 zero.txt
>> Any thoughts?
>
>
> Okay, this is my problem.
>
> You need to add repository against which to send. Just like in push.
>
> Try this:
> mkdir dbug
> mkdir dbug2
> cd dbug
> darcs init
> echo This is a test file.>test.txt
> darcs add test.txt
> darcs record --all
> cd ../dbug2
> darcs init
> cd ../dbug
> darcs send --output=../patch ../dbug2
>
> And in the end you'll get file patch:
> ----------------
>
> New patches:
>
> [asddsa
> thesz at mail.ru**20051017221033] {
> addfile ./test.txt
> hunk ./test.txt 1
> +This is a test file.
> }
>
> Context:
>
> Patch bundle hash:
> fd598f7d62c858ac954f70d38cc9808d6f9031a9
> ----------------





More information about the darcs-users mailing list