Ticket #610 (assigned defect)
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 :)

