public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc_release script, snapshots, and LAST_UPDATED version
@ 2010-12-20 11:08 Gary Funck
  2010-12-20 15:07 ` Joseph S. Myers
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Funck @ 2010-12-20 11:08 UTC (permalink / raw)
  To: Gcc Patches; +Cc: Gerald Pfeifer

I've been reviewing the maintainer-scripts/gcc_release shell script
for use in making gupc snapshots, and noticed that it may be using the
wrong svn revision number when updating the LAST_CHANGED file.

Here's the code:

   SVNREV=`${SVN} info "${SVNROOT}/${SVNBRANCH}"|awk '/Revision:/ {print $2}'`
   [...]
   echo "Obtained from SVN: ${SVNBRANCH} revision ${SVNREV}" > LAST_UPDATED

If we take a recent 4.5 snapshot as an example, we see the following:

$ cat gcc-core-4.5-20101216/LAST_UPDATED
Obtained from SVN: branches/gcc-4_5-branch revision 167957

If we obtain the info on that branch revision, we see
the following:

   svn info -r167957 file:///svn/gcc/branches/gcc-4_5-branch
   Path: gcc-4_5-branch
   URL: file:///svn/gcc/branches/gcc-4_5-branch
   Repository Root: file:///svn/gcc
   Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
   Revision: 167957
   Node Kind: directory
   Last Changed Author: rguenth
   Last Changed Rev: 167948
   Last Changed Date: 2010-12-16 06:34:03 -0800 (Thu, 16 Dec 2010)

Trying to query that rev. on the 4.5 branch turns up nothing:
   $ svn log -r167957 file:///svn/gcc/branches/gcc-4_5-branch | head -20
But, as expected, querying the last changed rev. works just fine.
   $ svn log -r167948 file:///svn/gcc/branches/gcc-4_5-branch | head -20

Based on the discussion above, I think that the following change
would generate the correct version number in LAST_UPDATED:

   Index: maintainer-scripts/gcc_release
   ===================================================================
   --- maintainer-scripts/gcc_release      (revision 168012)
   +++ maintainer-scripts/gcc_release      (working copy)
   @@ -167,7 +167,7 @@ EOF
	  error "Could not tag sources"
	SVNBRANCH=${TAG}
      fi
   -  SVNREV=`${SVN} info "${SVNROOT}/${SVNBRANCH}"|awk '/Revision:/ {print $2}'`
   +  SVNREV=`${SVN} info "${SVNROOT}/${SVNBRANCH}"|awk '/^Last Changed Rev:/ {print $4}'`
    
      # Export the current sources.
      inform "Retrieving sources (svn export -r ${SVNREV} ${SVNROOT}/${SVNBRANCH})"

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-29 10:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-20 11:08 gcc_release script, snapshots, and LAST_UPDATED version Gary Funck
2010-12-20 15:07 ` Joseph S. Myers
2010-12-20 17:36   ` Gary Funck
2010-12-20 17:52     ` Joseph S. Myers
2011-01-28 20:01       ` Gerald Pfeifer
2011-01-28 20:42         ` Joseph S. Myers
2011-01-28 23:55           ` Gerald Pfeifer
2011-01-29 17:09         ` Gary Funck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).