Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4126 closed enhancement (fixed)

Visualize the Revision Number in the Trac UI

Reported by: ilias@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.11
Component: general Version: devel
Severity: normal Keywords: setuptools
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

it would be nice to have the revision number visualized, e.g.:

0.11dev.r4078 (instead of the simple 0.11dev)

This would allow users of development version to report the revision number without having much effort.

Attachments (0)

Change History (10)

comment:1 by Noah Kantrowitz (coderanger) <coderanger@…>, 17 years ago

Subversion offers no direct way to do this. On the plus side setuptools does, so once that migration is complete the revision number will be visible in the egg name.

comment:2 by markus, 17 years ago

This could be done by using svn:keywords

comment:3 by Christian Boos, 17 years ago

Milestone: 0.11

No, it can't: you'd get the last revision for the file which contains the keyword, usually not a very interesting information…

As Noah said, the setuptools branch addresses that.

in reply to:  3 comment:4 by markus, 17 years ago

Replying to cboos:

No, it can't

Mea culpa.

in reply to:  1 ; comment:5 by ilias@…, 17 years ago

Replying to Noah Kantrowitz (coderanger) <coderanger@yahoo.com>:

Subversion offers no direct way to do this. On the plus side setuptools does, so once that migration is complete the revision number will be visible in the egg name.

I understand.

For development versions (fetched/updated from svn), the setuptools functionality would not help.

Possible solution a post-commit function, which retrieves the HEAD rev number and places it within a file, where it can be retrieved programmatically.

in reply to:  5 ; comment:6 by Christopher Lenz, 17 years ago

Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

Replying to ilias@lazaridis.com:

For development versions (fetched/updated from svn), the setuptools functionality would not help.

It does. It shows you the version number and the revision.

in reply to:  6 ; comment:7 by ilias@…, 17 years ago

Replying to cmlenz:

Replying to ilias@lazaridis.com:

For development versions (fetched/updated from svn), the setuptools functionality would not help.

It does. It shows you the version number and the revision.

ok.

I assume that this would need an "python setup.py develop" after the svn update, but this would still be sufficient.

in reply to:  7 comment:8 by Matthew Good, 17 years ago

Replying to ilias@lazaridis.com:

Replying to cmlenz:

Replying to ilias@lazaridis.com:

For development versions (fetched/updated from svn), the setuptools functionality would not help.

It does. It shows you the version number and the revision.

I assume that this would need an "python setup.py develop" after the svn update, but this would still be sufficient.

"python setup.py egg_info" is all that's needed to update the package's metadata where the version is stored.

comment:9 by ilias@…, 17 years ago

Keywords: setuptools added

comment:10 by ilias@…, 17 years ago

Resolution: fixed
Status: assignedclosed

fixed with setuptools-merge, see [4819]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.