The version is never in .svn/entries file

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

The version is never in .svn/entries file

#1 Post by sofax222 »

The svn version no. is change to .svn/wo.db file.
So, the "version" command showing no version no..
The wc.db seems to be a SQLite db file.
How to read the version no. from the db file ?
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: The version is never in .svn/entries file

#2 Post by EternalHarvest »

We shouldn't manually read .svn dir. How about using output of `svn info --xml` instead?
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: The version is never in .svn/entries file

#3 Post by sofax222 »

EternalHarvest wrote:We shouldn't manually read .svn dir. How about using output of `svn info --xml` instead?
Do you mean we shouldn't read .svn dir in OpenKore program (Command.pm) ??
If it is true, should the "version" command in OpenKore be abandoned !!
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: The version is never in .svn/entries file

#4 Post by EternalHarvest »

Command just outputs $Settings::versionText. It contains not only svn revision, why remove?

getSVNRevision should just use svn to determine revision, and not mess with svn's files.