Make the Mecurial Web Interface More Useful

I've made some enhancements to the web view of Mercurial.

Change tag and branch names into links

For you guys using mq, when you request a web review, you send out the URL of the changeset generated by qpush, something like:
      http://hostname/cgi/hgwebdir.cgi/hg/rev/1c4ddc74bb06
before the reviewer is finished with the task, you do some qpop/qpush/qrefresh, and the URL for the changeset changes to something else:
      http://hostname/cgi/hgwebdir.cgi/hg/rev/242605649945
After apply this patch, the yellow tag labels links to a URL which is permanent for the patch, and take the format of:
      http://hostname/cgi/hgwebdir.cgi/hg/rev/gitweb_tag_link

Add file status tag in changeset

Simple enhancement to the changeset view, where you can see symbols before the file names meaning +(Added), -(Removed), !(Modified), r(Renamed)



Toggle view of full contents and diff only

For those (possibly mq users) who sends out the changeset URL for web review, your reviewer may prefer the webrev format more because it contains more information. This patch may not provide as many as info like webrev, but it does show a "Toggle Full Codes Display" link on the changeset and filediff page, click on it and you read all the contents of the old and new files. Plus now it shows 2 columns of line numbers for the old version and the new one respectively.

Normal view:



After you press the link:

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blog has a comments managing system that requires me to approve each comment manually. Please do not re-post and I will reply it (if I have an answer) when I get pinged.

Search

Top Tags
Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today