Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6388 closed defect (worksforme)

Version string display on the About Trac page should contain revision number.

Reported by: rjollos Owned by: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

In [7214] you added version info to the System Information section on the about page. The log message with that checkin seems to imply a version info string of the form 0.1.1 (r7214), but I only see a string of the form 0.1.1.

---

[7214] by osimons on 2009-12-02 18:00:49
FullBlogPlugin: Adding version information to 'About Trac' for admins (and also now adding revision from repos to version string).


---

(I tried to include just the log message for [7214], but this doesn't seem to work because of #3928)

I current have the head revision, [7225], installed.

I really like the idea of including the revision number in the string because I currently track revisions of installed plugins manually on a wiki page. I'm look at copying the work you did there and applying patches to all of the other plugins on my system.


Attachments (1)

AboutTracSystemInformation.png (372.9 KB) - added by rjollos 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by rjollos

comment:1 Changed 5 years ago by rjollos

Sorry ... meant to crop that image before upload.

comment:2 Changed 5 years ago by rjollos

See also t:#8921.

comment:3 follow-up: Changed 5 years ago by osimons

It 'worksforme' - mine says 0.1.1-r7225. You obviously need to do a full easy_install/setup.py run to get the subversion metadata tagged in the plugin metadata that gets read as version string. Could you please try installing again?

comment:4 in reply to: ↑ 3 Changed 5 years ago by rjollos

Replying to osimons:

It 'worksforme' - mine says 0.1.1-r7225. You obviously need to do a full easy_install/setup.py run to get the subversion metadata tagged in the plugin metadata that gets read as version string. Could you please try installing again?

Thanks for explaining how that works. I had been looking at [7214] and couldn't see how the revision number was added to the version string.

I will reinstall and report back here shortly.

comment:5 follow-up: Changed 5 years ago by rjollos

It sounds like the issue I am experiencing may be due to the way my hosting provider installs plugins. It sounds like they checkout and export the contents of the working copy so that easy_install is run from a directory that doesn't contain .svn working copy directories. It looks to me like egg_info uses get_svn_revision to obtain the revision number from the .svn directory in a working copy.

Does that explanation make sense to you?

comment:6 in reply to: ↑ 5 ; follow-up: Changed 5 years ago by osimons

Replying to rjollos:

Does that explanation make sense to you?

Yes, it does. The tagging of subversion revision number presumes the install is made from a subversion working copy (easy_install <url> will also perform a checkout to tmp). No svn information, no revision tagging.

A 'worksforme' then, I suppose?

comment:7 in reply to: ↑ 6 ; follow-up: Changed 5 years ago by rjollos

  • Resolution set to worksforme
  • Status changed from new to closed

Replying to osimons:

Replying to rjollos:

Does that explanation make sense to you?

Yes, it does. The tagging of subversion revision number presumes the install is made from a subversion working copy (easy_install <url> will also perform a checkout to tmp). No svn information, no revision tagging.

That puts a damper on my hopes of displaying the version and revision info for plugins on the About page (c.f. t:#8921). One more reason to try and move from shared hosting to a dedicated server ...

Replying to osimons:

A 'worksforme' then, I suppose?

Yes, thanks for your help!

comment:8 in reply to: ↑ 7 Changed 5 years ago by rjollos

Replying to rjollos:

That puts a damper on my hopes of displaying the version and revision info for plugins on the About page (c.f. t:#8921). One more reason to try and move from shared hosting to a dedicated server ...

Looks like they solved that problem as well now by moving to a newer version of setup_tools (sounds like the older version had problems with working copies, which resulted in the procedure of installing from a copy not under version control). I have the revision info on my About page now.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.