This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10414 - tools/version.sh support for bzr or bzr-svn repositories
Attached to Project:
Rockbox
Opened by Torne Wuff (torne) - Wednesday, 08 July 2009, 21:45 GMT+2
Last edited by Torne Wuff (torne) - Thursday, 15 October 2009, 14:43 GMT+2
Opened by Torne Wuff (torne) - Wednesday, 08 July 2009, 21:45 GMT+2
Last edited by Torne Wuff (torne) - Thursday, 15 October 2009, 14:43 GMT+2
|
Detailstools/version.sh has some support for displaying the revision number for git-svn repositories, and their dirty status.
Attached patch adds similar support for bzr and bzr-svn. It uses the presence of a .bzr directory to detect bzr branches which should be fairly unambiguous. :) 1) A bzr-svn checkout of r12345 will output "r12345-date" or "r12345M-date" if there are uncommitted changes. This should make it behave identically to svn if bzr is being used as a direct replacement. 2) A bzr branch which has merged svn changes up to r12345 but is itself at bzr revision 13579 will output "r12345+bzr13579" or "r12345+bzr13579M" if there are uncommitted changes. This lets a developer using bzr keep track of what svn revision their branch is based from, but also shows them what revision of their own bzr-committed work they are at. 3) A bzr branch with no svn changes in its ancestry at revision 13579 will output "bzr13579" or "bzr13579M" if there are uncommitted changes. This may be useful if tailor or other VCS-converting schemes are in use instead of bzr-svn - the version number is meaningless to the rest of the world but at least means something to the person who made the build. There should be no impact on anyone who doesn't have a .bzr directory in their copy of rockbox :) |
This task depends upon
Closed by Torne Wuff (torne)
Thursday, 15 October 2009, 14:43 GMT+2
Reason for closing: Fixed
Additional comments about closing: Submitted in r23187
Thursday, 15 October 2009, 14:43 GMT+2
Reason for closing: Fixed
Additional comments about closing: Submitted in r23187
I assure everyone that this is just me making foolish mistakes and not any shortcoming of bzr :)
I know some people complained about me adding a git commit -ish id when I added the git stuff which is why it only indicates the nearest svn version and the M for modified.