http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50840

             Bug #: 50840
           Summary: gcc_update can't find SVN revision in Mercurial tree
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: si...@pushface.org


gcc_update tries to update gcc/REVISION with the SVN revision corresponding to
the Hg revision that's been checked out. With a Mercurial clone of trunk, this
fails, because gcc_update looks for the SVN revision in the extra: line "as
stored by hg convert" (line 331ff)

    revision=`$GCC_HG log --debug -r$parents | \
        sed -ne "/^extra:.*convert_revision=svn:/ {
            s%^.*@%%
        p
        }"`

It looks as though "hg convert" has stopped storing the SVN revision:

$ hg log --debug -r104489
changeset:   104489:1fd3ec901d4423227991f3902a0e1a6103a332b6
branch:      trunk
tag:         tip
parent:      104488:1af2ecc2b00780c947914f06d884701169ecc092
parent:      -1:0000000000000000000000000000000000000000
manifest:    104489:df2c1e5611bf8b9bfff454ca9186bf42379ea5b1
user:        jvdelisle
date:        Wed Nov 10 04:58:16 2010 +0000
files:       gcc/fortran/ChangeLog gcc/fortran/expr.c gcc/fortran/intrinsic.c
extra:       branch=trunk
description:
[...]

with the result

$ cat gcc/REVISION 
[trunk revision ]

Reply via email to