Opened 9 years ago

Closed 7 years ago

#89 closed enhancement (wontfix)

use SVN versions in widgets lua files

Reported by: Dansan Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description (last modified by Bluestone)

Widgets are often updated and I sometimes download a fixed version from SVN. Later BA versions will contain the fixed widget, and I'll remove my local file to use the in-mod-version. Problem is, that the version/date stored in the widget:GetInfo() never gets updated, so I have to compare and look here and there and all that is tedious.

A simple automatic solution would be to use SVN keywords:

prepend this line in a LUA file:

-- $Id:$

then run:

$ svn propset svn:keywords "Id" unit_customformations2.lua
$ svn commit unit_customformations2.lua

The line will each commit be replaced by

-- $Id: unit_customformations2.lua 796 2012-09-21 20:28:24Z Pako $

(filename svn-rev date commiter)

Change History (2)

comment:1 by Bluestone, 8 years ago

Imo a better solution is that the widget handler shows both users copy and mods copy of widget (and shows which is which, and by default on fresh install or new mod version defaults to mod copy) - then users can switch between then two.

comment:2 by Bluestone, 7 years ago

Description: modified (diff)
Resolution: wontfix
Status: newclosed

To be honest, I think this isn't going to happen.

Note: See TracTickets for help on using tickets.