Page MenuHomePhabricator

Make Revision ID available in a variable
Closed, ResolvedPublic


Author: artslave

It would be useful if Revision ID number (see bug 181) could be stored in a variable --
{{VERSIONNUMBER}} or the like -- a la the other variables at

This would make it easy to construct templates for citation of the current version (see bug
800), and other references helpful to readers as well as editors.

(entering as new bug as suggested by Brion Vibber)

Version: unspecified
Severity: enhancement
Platform: PC



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:17 PM
bzimport set Reference to bz1739.

New magic keyword: {{REVISIONID}}

Implemented in cvs HEAD and need to be tested. The value will
change when viewing an old revision of the article and seems
to correctly display the current revision on article view.

Due to bug 181 (no revision id for current article) this bug
will not be implemented in 1.4. Closing.

There are some inconsistencies in behavior.

  • nothing is displayed on preview (should it be? should there be a distinct alternate value?)
  • nothing is displayed in diff view (it should be)

It's working now.
Because the diffengine is fetching article content directly,
Article::mRevIdFetched was not properly set.

There is still a problem with the diffengine as there is
three ways to show the diff for the last revision :(