# HG changeset patch # User Anton Shestakov # Date 1443258958 -28800 # Node ID 0f0cda81e9b0343bf2077d9fcbde3ce6ae64151a # Parent bda14660f0d7d36ee188edbc44fd79f415ee5a25 gitweb: provide links to branches, tags and bookmarks by name This is adapted from cd842821db2c, that was added to paper for 3.5 release. It adds another way to refer to branches, tags and bookmarks in urls: by name. It's still possible to navigate to a specific changeset hash, but now you can get more descriptive urls straight from /summary page, for example. branchentry template (and so the whole branches table on /summary and /branches) lost the column that had a plain changeset hash, because tags and bookmarks don't have this column and also because there is already a way to address branch by its changeset hash (changeset link just next to it). Maybe we can instead bring this column with a plain changeset hash to tags and bookmarks, but this, more terse, new look feels fine. diff -r bda14660f0d7 -r 0f0cda81e9b0 mercurial/templates/gitweb/map --- a/mercurial/templates/gitweb/map Fri Sep 25 03:44:15 2015 -0400 +++ b/mercurial/templates/gitweb/map Sat Sep 26 17:15:58 2015 +0800 @@ -195,7 +195,7 @@ tagentry = ' {date|rfc822date} - {tag|escape} + {tag|escape} changeset | changelog | @@ -206,7 +206,7 @@ bookmarkentry = ' {date|rfc822date} - {bookmark|escape} + {bookmark|escape} changeset | changelog | @@ -217,8 +217,7 @@ branchentry = ' {date|rfc822date} - {node|short} - {branch|escape} + {branch|escape} changeset | changelog | diff -r bda14660f0d7 -r 0f0cda81e9b0 tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t Fri Sep 25 03:44:15 2015 -0400 +++ b/tests/test-hgweb-commands.t Sat Sep 26 17:15:58 2015 +0800 @@ -1611,7 +1611,7 @@ Thu, 01 Jan 1970 00:00:00 +0000 - 1.0 + 1.0 changeset | changelog | @@ -1626,7 +1626,7 @@ Thu, 01 Jan 1970 00:00:00 +0000 - anotherthing + anotherthing changeset | changelog | @@ -1635,7 +1635,7 @@ Thu, 01 Jan 1970 00:00:00 +0000 - something + something changeset | changelog | @@ -1650,8 +1650,7 @@ Thu, 01 Jan 1970 00:00:00 +0000 - cad8025a2e87 - unstable + unstable changeset | changelog | @@ -1660,8 +1659,7 @@ Thu, 01 Jan 1970 00:00:00 +0000 - 1d22e65f027e - stable + stable changeset | changelog | @@ -1670,8 +1668,7 @@ Thu, 01 Jan 1970 00:00:00 +0000 - a4f92ed23982 - default + default changeset | changelog | diff -r bda14660f0d7 -r 0f0cda81e9b0 tests/test-hgweb-symrev.t --- a/tests/test-hgweb-symrev.t Fri Sep 25 03:44:15 2015 -0400 +++ b/tests/test-hgweb-symrev.t Sat Sep 26 17:15:58 2015 +0800 @@ -422,11 +422,11 @@ changeset | files - xyzzy + xyzzy changeset | changelog | files - 9d8c40cba617 + default changeset | changelog | files @@ -469,19 +469,19 @@ | (0) tip $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'tags?style=gitweb' | egrep $REVLINKS - tip + tip changeset | changelog | files $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'bookmarks?style=gitweb' | egrep $REVLINKS - xyzzy + xyzzy changeset | changelog | files $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'branches?style=gitweb' | egrep $REVLINKS - 9d8c40cba617 + default changeset | changelog | files