Edgewall Software

Changes between Version 30 and Version 31 of TracDev/ApiChanges/0.12


Ignore:
Timestamp:
Apr 26, 2010, 9:19:45 PM (14 years ago)
Author:
Remy Blank
Comment:

Added a section about Repository.display_rev().

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ApiChanges/0.12

    v30 v31  
    2424== Modifications made to the 0.12 API ==
    2525=== Modified Interfaces ===
    26 ==== `IWikiMacroProvider` ^[source:trunk/trac/wiki/api.py@8372:85#L72 (0.12)] [source:branches/0.11-stable/trac/wiki/api.py@8372:90#L77 (0.11)]^ ==== #IWikiMacroProvider
     26==== `IWikiMacroProvider`            ^[source:trunk/trac/wiki/api.py@8372:85#L72 (0.12)] [source:branches/0.11-stable/trac/wiki/api.py@8372:90#L77 (0.11)]^ ==== #IWikiMacroProvider
    2727Added an optional argument `args` to `IWikiMacroProvider.expand_macro()` to contain the shebang-line arguments when using wiki processor syntax. For example, with the following content:
    2828{{{
     
    3636See also #8204.
    3737
    38 ==== `IWikiPageManipulator` ^[source:trunk/trac/wiki/api.py@8429:64#L52 (0.12)] [source:branches/0.11-stable/trac/wiki/api.py@8429:69#L57 (0.11)]^ ==== #IWikiPageManipulator
     38==== `IWikiPageManipulator`          ^[source:trunk/trac/wiki/api.py@8429:64#L52 (0.12)] [source:branches/0.11-stable/trac/wiki/api.py@8429:69#L57 (0.11)]^ ==== #IWikiPageManipulator
    3939This interface has not actually been changed, but the implementation has been fixed so that it actually does what it promises, that is, ''validate a wiki page '''after it's been populated''' from user input''. Previously, `page.text` would contain the old text, and the new text would typically be retrieved with `req.args.get('text')` as a workaround.
    4040
     
    147147See #7116 for details on the `authz` argument, and #8731 for the `params` argument.
    148148
     149==== `Repository` revision transformation ^[source:trunk/trac/versioncontrol/api.py@9559:875-882#L857 (0.12)]^ ====
     150
     151In addition to `Repository.normalize_rev(rev)`, which returns a (unique) normalized representation of the given revision (usually a full revision number or hash), and `Repository.short_rev(rev)`, which returns a short representation of the a revision to be used e.g. for source annotation, a new `Repository.display_rev(rev)` method can be implemented by version control backends to return a representation of a revision suitable for display to the user. By default, `display_rev()` calls `normalize_rev()`.
     152
     153See #9230 for details.
     154
    149155==== `Node` constructor  ^[source:trunk/trac/versioncontrol/api.py@9125:905#L887 (0.12)] [source:branches/0.11-stable/trac/versioncontrol/api.py@8353:368#L354 (0.11)]^ ==== #Node
    150156
     
    183189== New in the 0.12 API ==
    184190=== New Classes ===
    185 ==== `trac.cache.CacheManager` ^[source:trunk/trac/cache.py@#L91 (0.12)]^ ==== #CacheManager
     191==== `trac.cache.CacheManager`                 ^[source:trunk/trac/cache.py@#L91 (0.12)]^ ==== #CacheManager
    186192
    187193There's a new cache subsystem in [source:trunk/trac/cache.py trac.cache] allowing Component instances to cache any data in a safe way. Whenever the cache entry is invalidated, the cached value will be automatically refreshed at the next retrieval, //even if the invalidation occurs in a different process//. This makes the `config.touch()` trick obsolete.
     
    191197See TracDev/CacheManager for details.
    192198
    193 ==== `trac.util.text.empty` ^[source:trunk/trac/util/text.py@#L30 (0.12)]^ ==== #empty
     199==== `trac.util.text.empty`                ^[source:trunk/trac/util/text.py@#L30 (0.12)]^ ==== #empty
    194200
    195201Special marker object used to represent a NULL value from the