[darcs-users] reviewing and testing pulls
David Roundy
droundy at abridgegame.org
Tue Apr 27 12:39:07 UTC 2004
On Tue, Apr 27, 2004 at 06:05:36AM -0400, zooko at zooko.com wrote:
>
> > It seems like it would be quite possible to write a tool that would
> > compare your recorded repo against (the working directory + a patch
> > set). But what I really want is the ability to use any existing tool to
> > do that comparison.
>
> > Also, I want to build and test a "candidate" that includes an external
> > patch, prior to committing to including that patch in my repo. It seems
> > like a broken process if I have to put it in my repo first, and then
> > unpull or unrecord or rollback if I don't like it.
>
> How's this? (Proof of concept.)
>
> cd .. && cp -rf myrepo tmprepo && cd tmprepo && darcs pull patchsrcrepo &&
> cd .. && diff -u -r --exclude=_darcs myrepo tmprepo
probably better to use
cd .. && darcs get --repo-name tmprepo myrepo && cd tmprepo && \
darcs pull patchsrcrepo && cd .. && \
diff -u -r --exclude=_darcs myrepo tmprepo
since this won't copy the patch files (it'll create hard links).
--
David Roundy
http://www.abridgegame.org
More information about the darcs-users
mailing list