Ticket #150 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 months ago

HubBot command to see time of last core update

Reported by: dugwyler Owned by:
Priority: low Component: Core
Version: Latest version from repository Severity: minor
Keywords: Cc:

Description

It would be useful to have a command that would be able to tell us when the core on a hub was last updated.

This could be done by comparing the date/time of twcore.jar at startup with the date of the last update, held in a hidden file. If the dates differed, the newer date would overwrite the old one. In either case the date would be stored, to be displayed when a HubBot command is used.

Attachments

Change History

Changed 2 years ago by Maverick

Unfortunately Subversion doesn't support a repository-wide $Revision$ variable that is expanded upon commit (like CVS has).

I suggest creating a new !version command in the Hubbot with something like "::$VERSION$::" that's replaced with revision information by the shell script that exports TWCore.
Unfortunately this also has to be done in the windows .bat export scripts so the text is also replaced on windows.

Changed 23 months ago by milosh

  • component changed from Bots - Other to Core

Changed 22 months ago by subby

im not sure what you mean by that update thing but one version check could be done just cheking the date when twcore was compiled?

long File.lastModified()

am i completely wrong about this

Changed 22 months ago by Maverick

Yes, this is an option. However, we like to work with Subversion revision numbers instead of dates as that's more easier for us.

Changed 22 months ago by dugwyler

Both would be ideal, the SVN revision number being more helpful, but really the date on the jar would be better than nothing. Until we can figure out a clean way to get the SVN revision (something hard to integrate into "general" TWCore running on other zones w/o SVN) I'd say this is a good substitute.

Changed 22 months ago by subby

  • owner set to subby

Changed 7 months ago by Maverick

  • owner subby deleted

Changed 7 months ago by Maverick

subby is no longer on the tw bot dev team

Changed 7 months ago by Maverick

  • priority changed from normal to low

This doesn't need any priority.

Changed 2 months ago by Maverick

  • status changed from new to closed
  • resolution set to fixed

Already done in the !version command (HubBot.handleVersion()).
This only works for the version of the HubBot.java, not the entire core, as the $Revision$ keyword only works for the file it's in, not the entire repository. (It's not possible to get the latest revision of an entire repository.)

Add/Change #150 (HubBot command to see time of last core update)

Author


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


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.