This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9758 - Make svnversion agnostic to version control mechanism
Attached to Project:
Rockbox
Opened by Alex Bennee (ajb) - Sunday, 04 January 2009, 15:34 GMT+2
Last edited by Andrew Mahone (Unhelpful) - Monday, 19 January 2009, 17:53 GMT+2
Opened by Alex Bennee (ajb) - Sunday, 04 January 2009, 15:34 GMT+2
Last edited by Andrew Mahone (Unhelpful) - Monday, 19 January 2009, 17:53 GMT+2
|
DetailsThe current attempt to deal with git repos fails if it's not a svn-repo (which is won't be if people have synced of the rockbox git repo). This patch makes the version script agnostic about git-svn and use Linux style id if git is detected.
|
This task depends upon
Closed by Andrew Mahone (Unhelpful)
Monday, 19 January 2009, 17:53 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed as r19799
Monday, 19 January 2009, 17:53 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed as r19799
using git will have their own commits on top. Ultimately the reported
version is most useful to the person that built that build. The git
commit ID marks exactly where and what revision history a given change
has. They can easily refer to a subversion revision if reporting
anything to Flyspray manually.
Removed extraneous tag checking code (hangover from Linux kernel)
Detected git-svn-id in HEAD commit message and will echo "grNNNNN" if in sync with SVN
"it's probably going to need to report the most recent git-svn commit regardless of whether it's HEAD or not. people want it to always show where the build fits in the svn repo, and at least some are against even appending a git commit ID."
I've changed the logic so a pure git commit will report and ID like: gd53f268(~r19748)-090112 which means git commit-ish d53f268 which is rooted from r19748
Fixed -dirty handling
The major objections to extending the version string itself are that differences based on version control systems may confuse users, and that the existing version string already barely fits the screen on some targets, and actually goes over by a few pixels with the "M" for modified. Such targets would end up seeing nothing in the bootloader display with a -<commitID> added to the version string, and if we have to ask users to look at the version via the menu to get the commit ID, they may as well look at rockbox-info.txt.