# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1511206254 18000 # Node ID 79cbf5cc4fb86c43414065425edc48f2eb469bfd # Parent 69ea10d5b00c499f14f9b8f285a09163a592ef3e templates: reword 'back to filelog' link anchor text This anchor text is problematic in two ways: first, the "back to" part assumes that you got to the page showing it via the filelog. This is not necessarily true, as there are other ways to get to that view besides the filelog view, such as for example following the history of lines from a file. Second, it uses "filelog" jargon, which refers to how each file has its own revlog. This is internal jargon that has no business being exposed to the end user. I just reworded this template to improve understanding. diff -r 69ea10d5b00c -r 79cbf5cc4fb8 mercurial/templates/gitweb/filelog.tmpl --- a/mercurial/templates/gitweb/filelog.tmpl Sat Nov 18 12:04:08 2017 +0800 +++ b/mercurial/templates/gitweb/filelog.tmpl Mon Nov 20 14:30:54 2017 -0500 @@ -36,7 +36,7 @@
{file|urlescape}{if(linerange, -' (following lines {linerange}{if(descend, ', descending')} back to filelog)')} +' (following lines {linerange}{if(descend, ', descending')} all revisions for this file)')}
diff -r 69ea10d5b00c -r 79cbf5cc4fb8 mercurial/templates/paper/filelog.tmpl --- a/mercurial/templates/paper/filelog.tmpl Sat Nov 18 12:04:08 2017 +0800 +++ b/mercurial/templates/paper/filelog.tmpl Mon Nov 20 14:30:54 2017 -0500 @@ -48,7 +48,7 @@ log {file|escape} @ {rev}:{node|short} {alltags} {if(linerange, -' (following lines {linerange}{if(descend, ', descending')} back to filelog)')} +' (following lines {linerange}{if(descend, ', descending')} all revisions for this file)')} {searchform} diff -r 69ea10d5b00c -r 79cbf5cc4fb8 tests/test-hgweb-filelog.t --- a/tests/test-hgweb-filelog.t Sat Nov 18 12:04:08 2017 +0800 +++ b/tests/test-hgweb-filelog.t Mon Nov 20 14:30:54 2017 -0500 @@ -741,7 +741,7 @@

log c @ 7:46c1a66bd8fc draft a-branch tip - (following lines 1:2 back to filelog) + (following lines 1:2 all revisions for this file)

@@ -861,7 +861,7 @@

log c @ 7:46c1a66bd8fc draft a-branch tip - (following lines 1:2 back to filelog) + (following lines 1:2 all revisions for this file)

@@ -1380,7 +1380,7 @@

log c @ 12:6e4182052f7b draft a-branch tip - (following lines 3:4 back to filelog) + (following lines 3:4 all revisions for this file)

@@ -1637,7 +1637,7 @@

log c @ 8:5c6574614c37 draft a-branch - (following lines 3:4, descending back to filelog) + (following lines 3:4, descending all revisions for this file)