[darcs-users] not erasing changes?
Max Battcher
me at worldmaker.net
Sun Apr 1 21:35:50 UTC 2007
On 4/1/07, Zach <netrek at gmail.com> wrote:
> On 4/1/07, Albert Reiner <areiner at tph.tuwien.ac.at> wrote:
> > I am not entirely sure I understand what you are doing. You are
> > working on repo foo, and then did `cp -r foo bar'? You might have
> > used `darcs get foo bar' just as well for that.
> >
> > Then you work in foo and want to have some of the changes in bar, and
> > want them to be recorded, too? In that case, you can just record the
> > patches in foo and push to, or pull into, bar.
>
> Ok my repo is foo (this was created and is updated from a public repo
> someone else maintains) so i did "cp -r foo bar' and then I work in
> bar. That way if I screwed up something very bad and don't know what
> code I had deleted that is causing the error I can just look at my
> reference "foo" dir and do a diff to see what I had deleted. Then if I
> make a patch I will do it in bar but manually 'darcs record' it in
> foo. I then have a public repo which I maintain in a remote ssh
> account. So I guess I am wondering if there is a better method I can
> use for my local machine development ("foo" and "bar") and updating my
> public repo "baz" with "foo". :)
Darcs is a distributed source control system designed for just such a
case. There is no reason to manually record a patch in foo because
you can record the patch in bar and darcs push it to foo. You can
push and pull patches very easily between different versions of a
repository. If you are familiar with CVS or another traditional
source control system: every copy of a repository is in essence an
entire branch of that repository. Here's a manual link on the
subject:
http://www.darcs.net/manual/node6.html#SECTION00632000000000000000
--
--Max Battcher--
http://www.worldmaker.net/
More information about the darcs-users
mailing list