Skip to content


Subversion checkout URL

You can clone with
Download ZIP


supply $revision$ at _diff if "Changes from beginning to ..." #331

merged 1 commit into from

2 participants


I create new page.
and, I see .
this changes were linked to _diff pages.
( and )
this is ok. I go to "view" link in tabs.
one was ok(this revision's "view"), but other was not ok(link to recent version of this page).
this problem was occured by not supplied to $revision$ when new page created.
this patch it supply. but it is inaccurate a bit.

@jgm jgm merged commit 9b81052 into jgm:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Network/Gitit/Handlers.hs
2  Network/Gitit/Handlers.hs
@@ -460,7 +460,7 @@ showDiff file page params = do
Left e -> liftIO $ throwIO e
Right htmlDiff -> formattedPage defaultPageLayout{
pgPageName = page,
- pgRevision = from',
+ pgRevision = from' `mplus` to,
pgMessages = pMessages params,
pgTabs = DiffTab :
pgTabs defaultPageLayout,
Something went wrong with that request. Please try again.