Edgewall Software

Ticket #610 (assigned defect)

Opened 7 weeks ago

Last modified 6 weeks ago

Use repos.display_rev for revision numbers that are displayed in templates

Reported by: trbs <trbs@…> Owned by: hodgestar
Priority: major Milestone: 0.6.1
Component: General Version: dev
Keywords: Cc:
Operating System: BSD

Description

When using version control systems that are based on hashes of changesets, like Mercurial or GIT the revision numbers are often shorted or alternatively formatted so that the user doesn't have to see the large hex.

Therefor I've added display_rev on several places in Bitten so that templates always display the formatted revision number.

For example in Mercurial the revision number now looks like:

 386:b9d1f6a7318b 

Instead of:

 b9d1f6a7318b3300150d951a478448a3d03fb9df

Please look at the code and commit in:  http://bitbucket.org/trbs/bitten/changeset/338389921ce0

The patch is also attached :)

Attachments

bitten-338389921ce0.diff Download (3.6 KB) - added by trbs <trbs@…> 7 weeks ago.

Change History

Changed 7 weeks ago by trbs <trbs@…>

Changed 7 weeks ago by hodgestar

  • owner set to hodgestar
  • status changed from new to assigned

Looks good.

Changed 6 weeks ago by trbs <trbs@…>

There is one addition for the timeline at:  http://bitbucket.org/trbs/bitten/changeset/0a0bce41190a

Add/Change #610 (Use repos.display_rev for revision numbers that are displayed in templates)

Author


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


Change Properties
<Author field>
Action
as assigned
 
Note: See TracTickets for help on using tickets.