Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id i9PHaprN005522 for ; Mon, 25 Oct 2004 17:36:51 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id 030D45357C for ; Mon, 25 Oct 2004 17:36:51 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM8tc-0005Qd-Pd for migo@homemail.com; Mon, 25 Oct 2004 13:44:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CM8t9-0005Pb-F5 for gnu-arch-users@gnu.org; Mon, 25 Oct 2004 13:44:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CM8t8-0005P5-Lp for gnu-arch-users@gnu.org; Mon, 25 Oct 2004 13:44:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM8t8-0005P1-Fx for gnu-arch-users@gnu.org; Mon, 25 Oct 2004 13:44:10 -0400 Received: from [80.161.86.108] (helo=ravn.mosehansen.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CM8lD-00081f-Ki for gnu-arch-users@gnu.org; Mon, 25 Oct 2004 13:36:00 -0400 Received: from musvit.mosehansen.dk (musvit.mosehansen.dk [192.168.0.4]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ravn.mosehansen.dk (Postfix) with ESMTP id DF1C1DEEBE for ; Mon, 25 Oct 2004 19:35:57 +0200 (CEST) From: Esben Mose Hansen To: gnu-arch-users@gnu.org Subject: Re: [Gnu-arch-users] Re: Creating a diif (-uN) from two revisions Date: Mon, 25 Oct 2004 19:35:57 +0200 User-Agent: KMail/1.7 References: <200410241650.04234.arch@mosehansen.dk> In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_9lTfBWYZKi2UDBz" Message-Id: <200410251935.57347.arch@mosehansen.dk> X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 1873 Lines: 68 --Boundary-00=_9lTfBWYZKi2UDBz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Monday 25 October, 2004 14:36, Catalin Marinas wrote: > Esben Mose Hansen writes: [...] > > diff -x \{arch\} -x .arch-ids -x .arch-inventory -x \, revision1 revision2 > > Another option is to use "tla changes/delta --diffs" and fix the > generated patch with the attached script. I ended going this route, except that I used the changeset instead and the attached script. Again, thanks for everybodys help :-D I amI perversely pleased that it wasn't an "error 40", at least :) -- regards, Esben --Boundary-00=_9lTfBWYZKi2UDBz Content-Type: application/x-shellscript; name="tla-makepatch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tla-makepatch" #!/bin/bash if [ $# != 2 ] then echo "Make patch between to revisions" echo " Usage: tla-makepatch old-revision new-revision" exit 1 fi old=$(tla revisions --full $1 |tail -n1) new=$(tla revisions --full $2 | tail -n1) delta=,,tla-makepatch-$$-delta rm -rf $delta tla delta $old $new $delta >/dev/null 2>&1 diff -uNr $delta/removed-files-archive $delta/new-files-archive --exclude "{arch}" --exclude .arch-ids | sed -e "s/$delta\/removed-files-archive/orig/" -e "s/$delta\/new-files-archive/mod/" -e /^diff/d find ./$delta/patches \( -path '*{arch}' -prune \) -or -type f -exec cat {} \; rm -rf $delta --Boundary-00=_9lTfBWYZKi2UDBz Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/ --Boundary-00=_9lTfBWYZKi2UDBz--