This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Fix add_version_info_from_vcs git svn version bug.
ClosedPublic

Authored by gberry on Jan 18 2016, 10:40 AM.

Details

Summary

add_version_info_from_vcs was setting SVN_REVISION to the last fetched
svn revision when using git svn instead of the svn revision
corresponding to HEAD. This leads to conflicts with the definition of
SVN_REVISION in SVNVersion.inc generated by GetSVN.cmake when HEAD is
not the most recently fetched svn revision.

Use 'git svn info' to determine SVN_REVISION when git svn is being used
instead (as is done in GetSVN.cmake).

Diff Detail

Event Timeline

gberry updated this revision to Diff 45197.Jan 18 2016, 10:40 AM
gberry retitled this revision from to [cmake] Fix add_version_info_from_vcs git svn version bug..
gberry updated this object.
gberry added a reviewer: beanz.
gberry added a subscriber: llvm-commits.
jroelofs added inline comments.
cmake/modules/VersionFromVCS.cmake
76

dead if

gberry updated this revision to Diff 45200.Jan 18 2016, 12:00 PM

Remove empty if.

beanz accepted this revision.Jan 19 2016, 9:14 AM
beanz edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jan 19 2016, 9:14 AM
This revision was automatically updated to reflect the committed changes.