[darcs-users] Re: newbie question about 'darcs send'
Erik Bågfors
zindar at gmail.com
Sun May 1 00:00:55 UTC 2005
On 4/29/05, Stephane Bortzmeyer <bortzmeyer at nic.fr> wrote:
> On Fri, Apr 29, 2005 at 02:15:16PM +0200,
> Tommy Pettersson <ptp at lysator.liu.se> wrote
> a message of 15 lines which said:
>
> > Sorry, missed a very important . in that command:
>
> Great! Almost what I was looking for. For convenience, I wrapped it in
> a shell function:
>
> darcsdiff() {
> file=`mktemp`
> darcs changes --to-patch "$1" --context > ${file}
> darcs send --all --context ${file} .
> rm ${file}
> }
>
> The only remaining stuff is to find automatically the patch, as being
> the patch of the last "darcs pull" or "darcs push". Any idea?
Yes, generate the context-file BEFORE recording anything.
Something like this:
Grab your repo from computer A,
Move it to computer B.
Run "darcs changes --context > $file"
hack away, record...etc...
run "darcs send -a --context $file -o $outfile
Then move $outfile on your usb-thingy and run "darcs apply $outfile"
So, each hacking session starts with a context extraction.
I THINK that should work.
/Erik
More information about the darcs-users
mailing list