[darcs-users] Re: Single developer using multiple workstations
Stephane Bortzmeyer
bortzmeyer at nic.fr
Wed May 16 09:29:03 UTC 2007
On Fri, May 11, 2007 at 12:18:37PM -0700,
Justin Bailey <jgbailey at gmail.com> wrote
a message of 18 lines which said:
> Essentially, I have source code I want to work on at home and at
> work, but I don't have a place to publish it easily.
[Do note that there are many offers <= 20 US $/month for a dedicated
Unix box. So, it is a possible solution, allowing you to have a
reference repository always online and reachable. The main issue is
that you have to spend some time managing it.]
> I would like maintain up to date repositories of my code at both
> locations, and be able to send patches from/to each via email.
The way I do it is with a shell function:
darcsdiff () {
file=`mktemp`
darcs changes --to-patch "$1" --context > ${file}
darcs send --all --context ${file} .
rm ${file}
}
And I run it this way at the end of the day:
darcsdiff "ID of the patch BEFORE the first patch I want"
More information about the darcs-users
mailing list