Edgewall Software

Ticket #4126 (closed enhancement: fixed)

Opened 2 years ago

Last modified 21 months ago

Visualize the Revision Number in the Trac UI

Reported by: ilias@… Owned by: cmlenz
Priority: normal Milestone: 0.11
Component: general Version: devel
Severity: normal Keywords: setuptools
Cc:

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

Change History

follow-up: ↓ 5   Changed 2 years ago by Noah Kantrowitz (coderanger) <coderanger@…>

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.

  Changed 2 years ago by markus

This could be done by using svn:keywords

follow-up: ↓ 4   Changed 2 years ago by cboos

  • milestone set to 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   Changed 2 years ago by markus

Replying to cboos:

No, it can't

Mea culpa.

in reply to: ↑ 1 ; follow-up: ↓ 6   Changed 2 years ago by ilias@…

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 ; follow-up: ↓ 7   Changed 2 years ago by cmlenz

  • owner changed from jonas to cmlenz
  • status changed from new to assigned

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 ; follow-up: ↓ 8   Changed 2 years ago by ilias@…

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   Changed 2 years ago by mgood

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.

  Changed 2 years ago by ilias@…

  • keywords setuptools added

  Changed 21 months ago by ilias@…

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

fixed with setuptools-merge, see [4819]

Add/Change #4126 (Visualize the Revision Number in the Trac UI)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cmlenz. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.