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 iBAJAZnb007352 for ; Fri, 10 Dec 2004 19:10:36 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id 2A6E153B2A for ; Fri, 10 Dec 2004 19:10:35 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcqJV-0001AS-42 for migo@homemail.com; Fri, 10 Dec 2004 14:20:25 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CcqIx-0001A9-Ri for gnu-arch-users@gnu.org; Fri, 10 Dec 2004 14:19:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CcqIx-00019i-29 for gnu-arch-users@gnu.org; Fri, 10 Dec 2004 14:19:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcqIw-00019f-PY for gnu-arch-users@gnu.org; Fri, 10 Dec 2004 14:19:51 -0500 Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ccq7f-0003RN-Dv for gnu-arch-users@gnu.org; Fri, 10 Dec 2004 14:08:11 -0500 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Ccq7d-0005OS-00 for ; Fri, 10 Dec 2004 20:08:09 +0100 Received: from chello080109053157.14.14.univie.teleweb.at ([80.109.53.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Dec 2004 20:08:09 +0100 Received: from a.rottmann by chello080109053157.14.14.univie.teleweb.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Dec 2004 20:08:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gnu-arch-users@gnu.org From: Andreas Rottmann Date: Fri, 10 Dec 2004 19:49:43 +0100 Message-ID: <874qiuhttk.fsf@ivanova.rotty.yi.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: chello080109053157.14.14.univie.teleweb.at User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:idSprvEy7Wif2Sgmpy67vyEJB/w= Subject: [Gnu-arch-users] Re: Applying changesets on non-Arch sources 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: 2490 Lines: 56 "Jade Rubick" writes: > So my patch-8 contains all the changes. I'd like to take that patch > and submit it in a form that can be applied to non-Arch source code. > Then I can commit it, send it to someone, etc.. > > I realize that Arch's changesets do a lot more than normal the normal > patch command. I'd be even happy if I could apply an Arch changeset on > non-Arch code. Is that possible? > Well, I've developed a way to extract a "patch script" out of an archive. This script, when run, will replay the changes in a set of changesets in an archive, including renames (that feature is not well tested, however). You can find the code in iTLA [0], this the file that does the work: http://rotty-ipv4.yi.org/cgi-bin/archzoom.cgi/a.rottmann@gmx.at--2004-main/itla--devo--0.1--patch-7/itla/export.scm [0] http://yi.org/rotty/ITLA This exports the changeset that corresponds to "tla changes" as a "patch script". I get the wanted set of changesets by removing their patch-logs from the tree, which is admittedly a bit of a hack, but works quite well; see the function "create-patch-script" in this file: http://rotty-ipv4.yi.org/cgi-bin/archzoom.cgi/a.rottmann@gmx.at--2004-main/itla--devo--0.1--patch-7/bin/itla-debuild I already thought about exposing this functionality directly in a command, e.g. itla-export Would you find that useful? > Questions: > > 1. Is there a way I can take patch-8, and apply that on another > machine, with tla installed, on non-Arch controlled source trees? > On the machine where the patch script is run, tla doesn't have to be installed, just on the machine you create it, you need tla (and itla). > 2. Is there a way to take that changeset and apply the changes to a > non-Arch source tree, even if I don't get the renaming of files, > etc... I'd love to just be able to patch -p0 < patch-file and have a > reasonably close set of changes made to the source code. > See above. HTH, Rotty -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 Software Patents: Where do you want to stifle inovation today? _______________________________________________ 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/