Edgewall Software

Opened 10 years ago

Last modified 10 years ago

#11438 closed defect

Wikilink to Git `log:[reponame]@[branch]` resolves branch to its tip in href — at Initial Version

Reported by: ethan.jucovy@… Owned by:
Priority: normal Milestone: 1.0.2
Component: version control/log view Version: 1.0-stable
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Using the wiki syntax log:rjollos.git@t10138 to link to a named branch log in a git repository results in a rendered link with an href like /log/rjollos.git/?rev=cd20d667b7b19e3ddba88bb2406472b71de797c2: the branch name "t10138" has been replaced with a reference to its current tip.

Using the unresolved branch name in the log reference would be preferable:

  • It would allow users to bookmark the resulting link. Currently if a user bookmarks the resulting link, it will become "stale" as soon as the branch tip changes, and will no longer meet the user's expectation that it shows an up-to-date log of the t10138 branch.
  • It would prevent "race conditions" which can cause the link to become stale. If a user visits a wiki page that contains the log: link, and then leaves that page open in a browser window, while another user commits and pushes changes to the t10138 branch, then the link will no longer point to the current branch tip without a page reload. If the user is very unlucky, the branch tip could even change during the lifecycle of the request to the wiki page, which means the link might even be stale right away.

This behavior is also inconsistent with browser:rjollos.git@t10138, which does result in a link to /browser/rjollos.git?rev=t10138 and therefore always points at the branch tip.

Change History (0)

Note: See TracTickets for help on using tickets.