From owner-ctm-users@FreeBSD.ORG Fri Nov 14 10:29:59 2014 Return-Path: Delivered-To: ctm-users@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 594B4AF7 for ; Fri, 14 Nov 2014 10:29:59 +0000 (UTC) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE8E428 for ; Fri, 14 Nov 2014 10:29:58 +0000 (UTC) Received: from mart.js.berklix.net (p5DCBD4CE.dip0.t-ipconnect.de [93.203.212.206]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id sAEAPtrO020729; Fri, 14 Nov 2014 10:25:55 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id sAEATaiH044349; Fri, 14 Nov 2014 11:29:36 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id sAEATI6H042907; Fri, 14 Nov 2014 11:29:30 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201411141029.sAEATI6H042907@fire.js.berklix.net> to: stephen@math.missouri.edu Subject: Re: suggestion of src-cur src/.svn_revision From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Wed, 05 Nov 2014 16:29:29 +0100." <201411051529.sA5FTT7u023200@fire.js.berklix.net> Date: Fri, 14 Nov 2014 11:29:18 +0100 Cc: ctm-users@freebsd.org X-BeenThere: ctm-users@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: CTM User discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2014 10:29:59 -0000 Hi Stephen, Wed, 05 Nov 2014 16:29:29 +0100 I wrote ctm-users@freebsd.org > So there is no place where ctm src-cur users can refer to SVN revision number, > So I suggest the ctm generator could be slightly extended eg approx: > svn export file:///usr/svn/base/head > ../output > tail -1 ../output | sed -e 's/Exported revision //' \ > | sed -e 's/.$//' > head/.svn_revision Any chance you could try adding code above or similar please ? I got reminded of it 'cos I'm just about to report another current kernel bug, & no svn rev no. I can point to for the majority of svn direct users. ( If not, my fallback would be to stop building kernels from src-cur & build them from my own export from svn-cur ). Cheers, Julian -- Julian Stacey, BSD Linux Unix C Sys Eng Consultant Munich http://berklix.com Indent previous with "> ". Interleave reply paragraphs like a play script. Send plain text, not quoted-printable, HTML, base64, or multipart/alternative. From owner-ctm-users@FreeBSD.ORG Fri Nov 14 21:19:15 2014 Return-Path: Delivered-To: ctm-users@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A05CA9D1 for ; Fri, 14 Nov 2014 21:19:15 +0000 (UTC) Received: from mst-rip6-missouri-out.um.umsystem.edu (mst-rip6-missouri-out.um.umsystem.edu [198.209.50.149]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "um-tip1.um.umsystem.edu", Issuer "InCommon Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CEF125A for ; Fri, 14 Nov 2014 21:19:14 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgoFADZwZlTPoJ7G/2dsb2JhbABbDoMBgSQKBNRQAoEcFgEBAQEBA3qEAwEBBHgBEAIBCBgJFg8JAwIBAgEgJQIEDQEFAgEBiD3MLwGGAgEBAQEGAQEBAQEBHJBvMweESwWSR405g1SICologzxAbYFIgQMBAQE X-IPAS-Result: AgoFADZwZlTPoJ7G/2dsb2JhbABbDoMBgSQKBNRQAoEcFgEBAQEBA3qEAwEBBHgBEAIBCBgJFg8JAwIBAgEgJQIEDQEFAgEBiD3MLwGGAgEBAQEGAQEBAQEBHJBvMweESwWSR405g1SICologzxAbYFIgQMBAQE Received: from um-tcas2.um.umsystem.edu ([207.160.158.198]) by mst-rip6-exch-relay.um.umsystem.edu with ESMTP; 14 Nov 2014 15:18:04 -0600 Received: from UM-MBX-N02.um.umsystem.edu ([169.254.5.198]) by UM-TCAS2.um.umsystem.edu ([207.160.158.198]) with mapi id 14.03.0210.002; Fri, 14 Nov 2014 15:18:04 -0600 From: "Montgomery-Smith, Stephen" To: "Julian H. Stacey" , "Montgomery-Smith, Stephen" Subject: Re: suggestion of src-cur src/.svn_revision Thread-Topic: suggestion of src-cur src/.svn_revision Thread-Index: AQHP//Xz3S1mti/D2k+tqcwpvrEZXpxhBZmA Date: Fri, 14 Nov 2014 21:18:04 +0000 Message-ID: <54667189.8000009@missouri.edu> References: <201411141029.sAEATI6H042907@fire.js.berklix.net> In-Reply-To: <201411141029.sAEATI6H042907@fire.js.berklix.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 x-originating-ip: [207.160.158.205] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "ctm-users@freebsd.org" X-BeenThere: ctm-users@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: CTM User discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2014 21:19:15 -0000 On 11/14/2014 04:29 AM, Julian H. Stacey wrote: > Hi Stephen, >=20 > Wed, 05 Nov 2014 16:29:29 +0100 I wrote ctm-users@freebsd.org >=20 >> So there is no place where ctm src-cur users can refer to SVN revision n= umber, >> So I suggest the ctm generator could be slightly extended eg approx: >> svn export file:///usr/svn/base/head > ../output >> tail -1 ../output | sed -e 's/Exported revision //' \ >> | sed -e 's/.$//' > head/.svn_revision >=20 > Any chance you could try adding code above or similar please ? Sorry - work has kept me very busy. I'll see about implementing this over the weekend. From owner-ctm-users@FreeBSD.ORG Fri Nov 14 21:39:44 2014 Return-Path: Delivered-To: ctm-users@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B80274E5 for ; Fri, 14 Nov 2014 21:39:44 +0000 (UTC) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4AF8B690 for ; Fri, 14 Nov 2014 21:39:43 +0000 (UTC) Received: from mart.js.berklix.net (pD9FBF9C3.dip0.t-ipconnect.de [217.251.249.195]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id sAELZhaj047836; Fri, 14 Nov 2014 21:35:44 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id sAELdQR0048368; Fri, 14 Nov 2014 22:39:27 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id sAELd8VD081093; Fri, 14 Nov 2014 22:39:20 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201411142139.sAELd8VD081093@fire.js.berklix.net> To: "Montgomery-Smith, Stephen" Subject: Re: suggestion of src-cur src/.svn_revision From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Fri, 14 Nov 2014 21:18:04 +0000." <54667189.8000009@missouri.edu> Date: Fri, 14 Nov 2014 22:39:08 +0100 Cc: "ctm-users@freebsd.org" X-BeenThere: ctm-users@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: CTM User discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2014 21:39:44 -0000 > >> So there is no place where ctm src-cur users can refer to SVN revision number, > >> So I suggest the ctm generator could be slightly extended eg approx: > >> svn export file:///usr/svn/base/head > ../output > >> tail -1 ../output | sed -e 's/Exported revision //' \ > >> | sed -e 's/.$//' > head/.svn_revision > > > > Any chance you could try adding code above or similar please ? > > Sorry - work has kept me very busy. I'll see about implementing this > over the weekend. Nice, thanks, no rush, just sometime when you have time to try & test. Cheers, Julian -- Julian Stacey, BSD Linux Unix C Sys Eng Consultant Munich http://berklix.com Indent previous with "> ". Interleave reply paragraphs like a play script. Send plain text, not quoted-printable, HTML, base64, or multipart/alternative. From owner-ctm-users@FreeBSD.ORG Fri Nov 14 22:57:29 2014 Return-Path: Delivered-To: ctm-users@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D1E2C7C for ; Fri, 14 Nov 2014 22:57:29 +0000 (UTC) Received: from um-nip3-missouri-out.um.umsystem.edu (um-nip3-missouri-out.um.umsystem.edu [198.209.49.163]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "um-tip1.um.umsystem.edu", Issuer "InCommon Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0A249E9B for ; Fri, 14 Nov 2014 22:57:28 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgoFANiHZlTPoJ7G/2dsb2JhbABbDoMBgSQKBNRQAoEbFgEBAQEBA3qEAwEBBHgBEAIBCBgJFg8JAwIBAgEgJQIEDQEFAgEBiD3MEwGGAgEBAQEGAQEBAQEBHJBvMweESwWSR405g1SICologzxAbYFIgQMBAQE X-IPAS-Result: AgoFANiHZlTPoJ7G/2dsb2JhbABbDoMBgSQKBNRQAoEbFgEBAQEBA3qEAwEBBHgBEAIBCBgJFg8JAwIBAgEgJQIEDQEFAgEBiD3MEwGGAgEBAQEGAQEBAQEBHJBvMweESwWSR405g1SICologzxAbYFIgQMBAQE Received: from um-tcas2.um.umsystem.edu ([207.160.158.198]) by um-nip3-exch-relay.um.umsystem.edu with ESMTP; 14 Nov 2014 16:56:01 -0600 Received: from UM-MBX-N02.um.umsystem.edu ([169.254.5.198]) by UM-TCAS2.um.umsystem.edu ([207.160.158.198]) with mapi id 14.03.0210.002; Fri, 14 Nov 2014 16:55:59 -0600 From: "Montgomery-Smith, Stephen" To: "Julian H. Stacey" , "Montgomery-Smith, Stephen" Subject: Re: suggestion of src-cur src/.svn_revision Thread-Topic: suggestion of src-cur src/.svn_revision Thread-Index: AQHP//Xz3S1mti/D2k+tqcwpvrEZXpxhIPcA Date: Fri, 14 Nov 2014 22:55:59 +0000 Message-ID: <5466887E.8090303@missouri.edu> References: <201411141029.sAEATI6H042907@fire.js.berklix.net> In-Reply-To: <201411141029.sAEATI6H042907@fire.js.berklix.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 x-originating-ip: [207.160.158.193] Content-Type: text/plain; charset="Windows-1252" Content-ID: <1D451A82F33C3C45ABF2054E8FB3EDBC@missouri.edu> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "ctm-users@freebsd.org" X-BeenThere: ctm-users@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: CTM User discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2014 22:57:29 -0000 On 11/14/2014 04:29 AM, Julian H. Stacey wrote: > Hi Stephen, >=20 > Wed, 05 Nov 2014 16:29:29 +0100 I wrote ctm-users@freebsd.org >=20 >> So there is no place where ctm src-cur users can refer to SVN revision n= umber, >> So I suggest the ctm generator could be slightly extended eg approx: >> svn export file:///usr/svn/base/head > ../output >> tail -1 ../output | sed -e 's/Exported revision //' \ >> | sed -e 's/.$//' > head/.svn_revision >=20 > Any chance you could try adding code above or similar please ? It was surprisingly easy to implement. Tell me if there are any problems. From owner-ctm-users@FreeBSD.ORG Sat Nov 15 15:02:34 2014 Return-Path: Delivered-To: ctm-users@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2B10D20 for ; Sat, 15 Nov 2014 15:02:34 +0000 (UTC) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6A57215E for ; Sat, 15 Nov 2014 15:02:33 +0000 (UTC) Received: from mart.js.berklix.net (p5DCBF20F.dip0.t-ipconnect.de [93.203.242.15]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id sAFEwPnB091575; Sat, 15 Nov 2014 14:58:26 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id sAFF26OZ053591; Sat, 15 Nov 2014 16:02:06 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id sAFF1lmJ046626; Sat, 15 Nov 2014 16:02:00 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201411151502.sAFF1lmJ046626@fire.js.berklix.net> To: "Montgomery-Smith, Stephen" Subject: Re: suggestion of src-cur src/.svn_revision From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Fri, 14 Nov 2014 22:55:59 +0000." <5466887E.8090303@missouri.edu> Date: Sat, 15 Nov 2014 16:01:47 +0100 Cc: "ctm-users@freebsd.org" X-BeenThere: ctm-users@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: CTM User discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2014 15:02:34 -0000 "Montgomery-Smith, Stephen" wrote: > On 11/14/2014 04:29 AM, Julian H. Stacey wrote: > > Hi Stephen, > > > > Wed, 05 Nov 2014 16:29:29 +0100 I wrote ctm-users@freebsd.org > > > >> So there is no place where ctm src-cur users can refer to SVN revision number, > >> So I suggest the ctm generator could be slightly extended eg approx: > >> svn export file:///usr/svn/base/head > ../output > >> tail -1 ../output | sed -e 's/Exported revision //' \ > >> | sed -e 's/.$//' > head/.svn_revision > > > > Any chance you could try adding code above or similar please ? > > It was surprisingly easy to implement. Tell me if there are any problems. Working nicely here thanks Stephen, great that you've done them all :-) I see with my http://www.berklix.com/~jhs/src/bsd/jhs/bin/local/ctms/ctms /pub/FreeBSD/branches/-current/ports ports-cur 10647 372594 /pub/FreeBSD/branches/-current/src src-cur 11700 274549 /pub/FreeBSD/branches/10.0-stable/src src-10 520 274548 /pub/FreeBSD/branches/4.0-stable/src src-4 2355 274538 /pub/FreeBSD/branches/5.0-stable/src src-5 862 274538 /pub/FreeBSD/branches/6.0-stable/src src-6 1653 274538 /pub/FreeBSD/branches/7.0-stable/src src-7 1734 274538 /pub/FreeBSD/branches/8.0-stable/src src-8 1834 274548 /pub/FreeBSD/branches/9.0-stable/src src-9 1325 274548 /pub/FreeBSD/development/CTM/ports-cur ports-cur.10647.gz /pub/FreeBSD/development/CTM/src-10 src-10.0520.gz /pub/FreeBSD/development/CTM/src-4 src-4.2355.gz /pub/FreeBSD/development/CTM/src-5 src-5.0862.gz /pub/FreeBSD/development/CTM/src-6 src-6.1653.gz /pub/FreeBSD/development/CTM/src-7 src-7.1734.gz /pub/FreeBSD/development/CTM/src-8 src-8.1834.gz /pub/FreeBSD/development/CTM/src-9 src-9.1325.gz /pub/FreeBSD/development/CTM/src-cur src-cur.11700.gz /pub/FreeBSD/development/CTM/svn-cur svn-cur.03024.xz /pub/FreeBSD/development/FreeBSD-SVN svn-cur 3024 I suggest one of us submit this or similar for 'man ctm' FILES section: *** 11.0-CURRENT/src/usr.sbin/ctm/ctm/ctm.1 Sat Nov 15 15:34:47 2014 --- new/src/usr.sbin/ctm/ctm/ctm.1 Sat Nov 15 15:52:38 2014 *************** *** 275,280 **** --- 275,290 ---- Changing or removing this file will greatly confuse .Nm . + .sp + .Pa .svn_revision + contains the revision number emitted by SVN + .\" eg from approx + .\" svn export file:///usr/svn/base/head > ../output + .\" tail -1 ../output | sed -e 's/Exported revision //' \ + .\" | sed -e 's/.$//' > head/.svn_revision + (to reference when discussing sources with users of + .Nm svn + direct). .Pp Using the .Fl e Cheers, Julian -- Julian Stacey, BSD Linux Unix C Sys Eng Consultant Munich http://berklix.com Indent previous with "> ". Interleave reply paragraphs like a play script. Send plain text, not quoted-printable, HTML, base64, or multipart/alternative. From owner-ctm-users@FreeBSD.ORG Sat Nov 15 20:41:26 2014 Return-Path: Delivered-To: ctm-users@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C08E0BF for ; Sat, 15 Nov 2014 20:41:26 +0000 (UTC) Received: from um-tip2-missouri-out.um.umsystem.edu (um-tip2-missouri-out.um.umsystem.edu [198.209.49.149]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "um-tip1.um.umsystem.edu", Issuer "InCommon Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D02E385 for ; Sat, 15 Nov 2014 20:41:25 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag8FALK5Z1TPoJ7Q/2dsb2JhbABbFoJ5VVkEzRWHTgKBEhYBAQEBAQN6gmssDV4BAQEDAXgBBQsCAQgYCRYPCQMCAQIBICUCBA0BBQIBAYg0CQ3KcQGGAgEBCAEBAQEBARyPAIFvMweESwWSR405g1SICoIshzyDfG2BSIEDAQEB X-IPAS-Result: Ag8FALK5Z1TPoJ7Q/2dsb2JhbABbFoJ5VVkEzRWHTgKBEhYBAQEBAQN6gmssDV4BAQEDAXgBBQsCAQgYCRYPCQMCAQIBICUCBA0BBQIBAYg0CQ3KcQGGAgEBCAEBAQEBARyPAIFvMweESwWSR405g1SICoIshzyDfG2BSIEDAQEB Received: from um-ncas4.um.umsystem.edu ([207.160.158.208]) by um-tip2-exch-relay.um.umsystem.edu with ESMTP; 15 Nov 2014 14:40:14 -0600 Received: from UM-MBX-N02.um.umsystem.edu ([169.254.5.198]) by UM-NCAS4.um.umsystem.edu ([207.160.158.208]) with mapi id 14.03.0210.002; Sat, 15 Nov 2014 14:40:14 -0600 From: "Montgomery-Smith, Stephen" To: "Julian H. Stacey" Subject: Re: suggestion of src-cur src/.svn_revision Thread-Topic: suggestion of src-cur src/.svn_revision Thread-Index: AQHQAOUT3S1mti/D2k+tqcwpvrEZXpxii3YA Date: Sat, 15 Nov 2014 20:40:13 +0000 Message-ID: <5467BA24.7090507@missouri.edu> References: <201411151502.sAFF1lmJ046626@fire.js.berklix.net> In-Reply-To: <201411151502.sAFF1lmJ046626@fire.js.berklix.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 x-originating-ip: [207.160.158.205] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "ctm-users@freebsd.org" X-BeenThere: ctm-users@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: CTM User discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2014 20:41:26 -0000 On 11/15/2014 09:01 AM, Julian H. Stacey wrote: > "Montgomery-Smith, Stephen" wrote: >> On 11/14/2014 04:29 AM, Julian H. Stacey wrote: >>> Hi Stephen, >>> >>> Wed, 05 Nov 2014 16:29:29 +0100 I wrote ctm-users@freebsd.org >>> >>>> So there is no place where ctm src-cur users can refer to SVN revision= number, >>>> So I suggest the ctm generator could be slightly extended eg approx: >>>> svn export file:///usr/svn/base/head > ../output >>>> tail -1 ../output | sed -e 's/Exported revision //' \ >>>> | sed -e 's/.$//' > head/.svn_revision >>> >>> Any chance you could try adding code above or similar please ? >> >> It was surprisingly easy to implement. Tell me if there are any problem= s. >=20 > Working nicely here thanks Stephen, great that you've done them all :-) One problem I encountered is that the SVN release number can increase without there being any actual changes to that particular branch. So mkctm has now been rewritten so that the delta is created only when there are actual changes, not just an SVN revision update. Otherwise branches like svn-4 will be spitting out new deltas which only update the SVN revision. > I see with my http://www.berklix.com/~jhs/src/bsd/jhs/bin/local/ctms/ctms >=20 > /pub/FreeBSD/branches/-current/ports ports-cur 10647 372594 > /pub/FreeBSD/branches/-current/src src-cur 11700 274549 > /pub/FreeBSD/branches/10.0-stable/src src-10 520 274548 > /pub/FreeBSD/branches/4.0-stable/src src-4 2355 274538 > /pub/FreeBSD/branches/5.0-stable/src src-5 862 274538 > /pub/FreeBSD/branches/6.0-stable/src src-6 1653 274538 > /pub/FreeBSD/branches/7.0-stable/src src-7 1734 274538 > /pub/FreeBSD/branches/8.0-stable/src src-8 1834 274548 > /pub/FreeBSD/branches/9.0-stable/src src-9 1325 274548 > /pub/FreeBSD/development/CTM/ports-cur ports-cur.10647.gz > /pub/FreeBSD/development/CTM/src-10 src-10.0520.gz > /pub/FreeBSD/development/CTM/src-4 src-4.2355.gz > /pub/FreeBSD/development/CTM/src-5 src-5.0862.gz > /pub/FreeBSD/development/CTM/src-6 src-6.1653.gz > /pub/FreeBSD/development/CTM/src-7 src-7.1734.gz > /pub/FreeBSD/development/CTM/src-8 src-8.1834.gz > /pub/FreeBSD/development/CTM/src-9 src-9.1325.gz > /pub/FreeBSD/development/CTM/src-cur src-cur.11700.gz > /pub/FreeBSD/development/CTM/svn-cur svn-cur.03024.xz > /pub/FreeBSD/development/FreeBSD-SVN svn-cur 3024=20 >=20 >=20 > I suggest one of us submit this or similar for 'man ctm' FILES section: >=20 > *** 11.0-CURRENT/src/usr.sbin/ctm/ctm/ctm.1 Sat Nov 15 15:34:47 2014 > --- new/src/usr.sbin/ctm/ctm/ctm.1 Sat Nov 15 15:52:38 2014 > *************** > *** 275,280 **** > --- 275,290 ---- > Changing > or removing this file will greatly confuse > .Nm . > + .sp > + .Pa .svn_revision > + contains the revision number emitted by SVN=20 > + .\" eg from approx > + .\" svn export file:///usr/svn/base/head > ../output > + .\" tail -1 ../output | sed -e 's/Exported revision //' \ > + .\" | sed -e 's/.$//' > head/.svn_revision > + (to reference when discussing sources with users of=20 > + .Nm svn > + direct). > .Pp > Using the > .Fl e >=20 > Cheers, > Julian >=20 This was the actual code I used to create (for example) src-8. cd ~library cd ctm/Temps/FreeBSD-8 svn up src svn up src | tail -1 | sed -E 's/[^[:digit:]]//g' > src/.svn_revision cd ~library ctm/ctm_generation/mkCTM ctm_conf.src-8 /usr/home/library/ctm/bin/create-INDEX One of us could file a PR with the appropriate changes to the ctm man page, but all my other PRs for ctm/mkctm have been ignored. However, I'll add the change to the svn-cur patches.=