From owner-freebsd-questions@FreeBSD.ORG Mon Nov 11 05:41:46 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0BAAA7F2 for ; Mon, 11 Nov 2013 05:41:46 +0000 (UTC) (envelope-from sreeramabs@yahoo.com) Received: from nm8-vm0.bullet.mail.ne1.yahoo.com (nm8-vm0.bullet.mail.ne1.yahoo.com [98.138.91.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9BC3A2A7C for ; Mon, 11 Nov 2013 05:41:45 +0000 (UTC) Received: from [98.138.101.129] by nm8.bullet.mail.ne1.yahoo.com with NNFMP; 11 Nov 2013 05:41:38 -0000 Received: from [98.138.101.161] by tm17.bullet.mail.ne1.yahoo.com with NNFMP; 11 Nov 2013 05:41:38 -0000 Received: from [127.0.0.1] by omp1072.mail.ne1.yahoo.com with NNFMP; 11 Nov 2013 05:41:38 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 362536.64996.bm@omp1072.mail.ne1.yahoo.com Received: (qmail 61837 invoked by uid 60001); 11 Nov 2013 05:41:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1384148498; bh=l7zvhF8HwmsjVLjoLHrurT2fHjR0t8+RWoA2rOd9nsg=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=fnms1RH8XFjfzhi9wE+j43M0VVKzZ3sHeqp2Dynq8YkOwyUvQPewNWpeS5aVOzPAK2l9f3hn2GawYLr7+VqaU7I3BL2aZDjSbrVTqN2Cp+tOxtB6PeJFHVBQuOgHPJIoHv09xp3eH5Kwp+qUrtW2R6M71EwnHX8zrAjNyYcl1JA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=lvZD4JFuxhcTrRsKY1EbjCsamCyCmNzD7PPg/1zFABwZBNukYfOoziKhK7x/ZhX8p1HTDOqzZEqT1hzhVz1onUuvR/pRxXsr+VqsqYMeOi0zIxuzrf0hqWKaEyV7zDr/23IwuogaR48Ub214yLxzczMF/5vw1Omql9PkT/vz5XU=; X-YMail-OSG: msPvwCIVM1mAqLZH.wS6NFw_n7ISu1mJPWnbFqpEBfZn4Hx eeOMFdO1q2FMCsC9Q6Cb6GRGwCb6E4mKugxVd21ojlonjmiHxO1xmfiJVZ2U lD9otFR3rJj7p4XQ0VsXmFOY6br2_TMvLMWgtlYCwsWSf_q_l6_O7FFKNWu2 LVHKYQoG4zvg1HGnuLw2i8FreqzBzz_PpTgCzmyBkq7YHPMhdqEIaRRXRgFv jIkspIIUcgeXq9xTDD7JhMTQYQkg58EbhIlxCu9pmtdyOnS.vxn1MsFnGWQk .ym4AMu1_gLSPwRUkdy25D5iZxBtVPdLnQ8EmKCYrYQjeik9tN.r4Vm.ZNzW hhluCPtATW8BRROaZDSpXi0B4xFc9PUrSZKbLlp90hApJqpRHGZtlk4ezvVq NVjfbtK3LN1XXpoo6yPRTTWa05qlofIO7AURUqygvaFqpkuzTFCk8sjkgPzX yya1WXLAC06CJLpcaV9.8hfcttqgNEZUS.ot3uRYDVUk6eXA0rGMFrOqAoxn rN_PFwkxMQHhlC5IiIismc6IM8fMN3j5ZZeqfWKLMfQnUpbyRVaaT_Kfwojn 7y9ISFAh.O51LM.rR_ALkvi1pFCVk6uBMRWEHvQsN8CbyKDPSdcbZsr8VhS3 VtATL_sVmJIL_fnUdsjdRE6smL7Qhmzjn4I3fjNVy Received: from [202.3.120.4] by web125401.mail.ne1.yahoo.com via HTTP; Sun, 10 Nov 2013 21:41:38 PST X-Rocket-MIMEInfo: 002.001, SGksCsKgIMKgIMKgSSBoYXZlIDIgcXVlc3Rpb25zIHJlbGF0ZWQgdG8gc291cmNlIGNvZGUgb2Ygc3RhbmRhcmQgcHJvZ3JhbXMoY29tbWFuZHMpIG9mIEZyZWVCU0QuwqAKCigxKSBBc3N1bWluZyBJIHdvdWxkIGxpa2UgdG8gZ2V0IHRoZSBzb3VyY2UgY29kZSBvZiBwcm9ncmFtICd0YWlsJywgdGhlbiBJIHZpc2l0IHRoaXMgVVJMwqBodHRwOi8vc3Zud2ViLmZyZWVic2Qub3JnL2Jhc2UvaGVhZC91c3IuYmluL8KgYW5kIGVudGVyIHRoZSDCoCd0YWlsJyBzdWItZGlyZWN0b3J5LiBIZXJlIEkgc2VlIHRoZSABMAEBAQE- X-Mailer: YahooMailWebService/0.8.163.597 Message-ID: <1384148498.43725.YahooMailNeo@web125401.mail.ne1.yahoo.com> Date: Sun, 10 Nov 2013 21:41:38 -0800 (PST) From: Sreeram BS Subject: Source code version To: "freebsd-questions@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Sreeram BS List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 05:41:46 -0000 Hi,=0A=A0 =A0 =A0I have 2 questions related to source code of standard prog= rams(commands) of FreeBSD.=A0=0A=0A(1) Assuming I would like to get the sou= rce code of program 'tail', then I visit this URL=A0http://svnweb.freebsd.o= rg/base/head/usr.bin/=A0and enter the =A0'tail' sub-directory. Here I see t= he tail.c file, but there is a version number(revision-number) next to it a= nd that is the actual link for the program. Now, this version number is dif= ferent for different utilities. For example, the latest version of tail.c i= s 251565, whereas the latest version of another program, 'basename' is 2163= 70.=0A=A0 =A0 My question is, is there a common path which can take us to t= he latest version of these programs? For example:=A0http://svnweb.freebsd.o= rg/base/head/usr.bin/tail/tail.c?revision=3DLATEST ?=0A=0A(2) Is there a wa= y, where I can get the revision number of source code of a program shipped = in a particular release. For example, 'tail' is present in FreeBSD9 and Fre= eBSD8 also ('tail' is present in all FreeBSD releases, and so picking that = as an example). The source code for 'tail' in FreeBSD8 could be different f= rom the one in FreeBSD9. Is there a way to obtain the revision number of ta= il.c program that was shipped in FreeBSD8 (or FreeBSD9).=0A=0APlease sugges= t and inform.=0A=0ARegards,=0ASreeram From owner-freebsd-questions@FreeBSD.ORG Mon Nov 11 07:08:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 17A60510 for ; Mon, 11 Nov 2013 07:08:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 94B992ECF for ; Mon, 11 Nov 2013 07:08:58 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id rAB78qTC013264 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 11 Nov 2013 07:08:53 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk rAB78qTC013264 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1384153733; bh=WZ9a4efL7wed2zbg6KpgRE9LxRwDxuitKdddWIWmRZU=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Mon,=2011=20Nov=202013=2007:08:52=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20Source=20code=20version|Reference s:=20<1384148498.43725.YahooMailNeo@web125401.mail.ne1.yahoo.com>| In-Reply-To:=20<1384148498.43725.YahooMailNeo@web125401.mail.ne1.y ahoo.com>; b=D4tcJBXA7yxTfoJP8lcwtk/2jISXsEvbumoaKxKbzrg4JG48KqjZ85szE7rL/2Tei zFz4721QKULB6zVKGOgR3/9VbZdzzbqiK3g7yEa06aqfMFmlApLf3Fgx8uyHWVqRee X72ESushevd+WVZ9UTH3Ab/Bvxb9U9hQITN+n7bs= Message-ID: <52808284.8070705@infracaninophile.co.uk> Date: Mon, 11 Nov 2013 07:08:52 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Source code version References: <1384148498.43725.YahooMailNeo@web125401.mail.ne1.yahoo.com> In-Reply-To: <1384148498.43725.YahooMailNeo@web125401.mail.ne1.yahoo.com> X-Enigmail-Version: 1.6 OpenPGP: id=E7F39EBF Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WuoU3fIn4GE39bDqXCGVNfn2Mbt5BsbUD" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 07:08:59 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WuoU3fIn4GE39bDqXCGVNfn2Mbt5BsbUD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/11/2013 05:41, Sreeram BS wrote: > I have 2 questions related to source code of standard > programs(commands) of FreeBSD. >=20 > (1) Assuming I would like to get the source code of program 'tail', > then I visit this URL http://svnweb.freebsd.org/base/head/usr.bin/ and > enter the 'tail' sub-directory. Here I see the tail.c file, but there > is a version number(revision-number) next to it and that is the > actual link for the program. Now, this version number is different > for different utilities. For example, the latest version of tail.c is > 251565, whereas the latest version of another program, 'basename' is > 216370. > My question is, is there a common path which can take us to the > latest version of these programs? For example: > http://svnweb.freebsd.org/base/head/usr.bin/tail/tail.c?revision=3DLATE= ST ? >=20 > (2) Is there a way, where I can get the revision number of source > code of a program shipped in a particular release. For example, > 'tail' is present in FreeBSD9 and FreeBSD8 also ('tail' is present in > all FreeBSD releases, and so picking that as an example). The source > code for 'tail' in FreeBSD8 could be different from the one in > FreeBSD9. Is there a way to obtain the revision number of tail.c > program that was shipped in FreeBSD8 (or FreeBSD9). Conceptual misunderstanding. Individual programs in the FreeBSD base system do not have separate version numbers (except for certain vendor imports). Instead, the whole tree has an overall revision number[*]. The revision listed in any file is the version of the whole tree at the time that file was last changed. So to get the latest version of any file, just check out the latest version of the source tree. Cheers, Matthew [*] This is a consequence of the shift to svn(1). There used to be individual per-file version numbers under CVS, but that's something most modern VCSes have moved away from. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --WuoU3fIn4GE39bDqXCGVNfn2Mbt5BsbUD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSgIKEXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT3XYQAJtvfUzZ++3YilEVoUtT17mU PxN3YVS3GoM9Db7hW9wPbbtFPbS3NkAsUGNtOVpaeOE1eARF04qomwPdQvoQjzGJ YgFYuREph2SYRVgZW5ajY95TX5nAYGqrACXxyBcHrEam62fQz1sYeb9qoUq3Il2C PbEBQqnV29rvzLjtQdapZ6R8/xVQdXs/H9udNgpmUMVkXB5MKXxFekwwKQu7bjVE qniUce5B274b0oJIbkO43gKqc7y+Raf5mbl2KUM2iBfthzuRJk95GKxKKgrTia7q 0wwNJn3FBvsOeiq4yErKZjPxEVu6DFP4qUOFi8ilHY8oXfFLkG9fXhsL2aRWaLE9 sIwj+gxWkcJiuE8m1tToQc9gKkX8kc1+XtMIhgkctqZr/MhdP67FiPq4ziBacYKx Auy4bsNOv2bUe6kYfKEYHuiXdQyC6Gz6lUQff0tfVlzLYtaqDvz+iE8GIPFa0nr2 syEdhkMCoS4Ow7kgpANeElWn2eOEGl2hGRkDE0UZJnO+/oz72L6o3affmeQTh9jc bWf02iRDgeZuNuG771fllPxuOprE1icIY4xfs6mlrOarPz8LzyEhgYsAVfDi2yDK xz/43NIVKFDsnE2EIpQ3mjqFMVbMLp+3l0GIfaSQ03Ol0UeSUc4m311aujaBfnKo 29XNI1rqQp5WTWps/6F1 =rc4W -----END PGP SIGNATURE----- --WuoU3fIn4GE39bDqXCGVNfn2Mbt5BsbUD--