[darcs-users] Usable diffs?

Trent W. Buck trentbuck at gmail.com
Sat Mar 14 04:53:52 UTC 2009


FWIW, I can use patch(1) to apply output from "darcs diff" successfully.
On Debian GNU/Linux:

    $ with-temp-dir
    with-temp-dir: entering directory `/tmp/with-temp-dir.OyssAJ'
    This directory will be deleted when you exit.
    $ darcs init
    $ echo x >x
    $ darcs rec -lam x x
    Recording changes in "x":

    Finished recording patch 'x'
    $ darcs diff -p . | tee x.patch
    Sat Mar 14 15:52:15 EST 2009  Trent W. Buck <trentbuck at gmail.com>
      * x
    diff -rN -purd -u old-with-temp-dir.OyssAJ/x new-with-temp-dir.OyssAJ/x
    --- old-with-temp-dir.OyssAJ/x	1970-01-01 10:00:00.000000000 +1000
    +++ new-with-temp-dir.OyssAJ/x	2009-03-14 15:52:30.972440562 +1100
    @@ -0,0 +1 @@
    +x

    $ darcs obl -p .
    Sat Mar 14 15:52:15 EST 2009  Trent W. Buck <trentbuck at gmail.com>
      * x
    Shall I obliterate this patch? (1/1)  [ynWsfvplxdaqjk], or ? for help: y

    Finished obliterating.
    $ ls
    _darcs	x.patch
    $ patch -p1 <x.patch
    patching file x
    $ ls
    _darcs	x  x.patch
    $ 



More information about the darcs-users mailing list