Size: 845
Comment: A funny hack using browser's capabilities to show whether the repo has changed
|
← Revision 3 as of 2012-05-13 14:15:23 ⇥
Size: 894
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Assume that you use the web interface and you would like to see whether someone committed a change since you've last looked at the repositories index. By default, you can see ''when'' the last change was committed; there is no easy way to see ''who'' did commit it - in particular, was it me or someone else? But there exists [http://wiki.sheep.art.pl/Comfortable%20Counters a rather funny hack I learned from my friend] which helps: change the "map" file from the template you are using so that in the line "indexentry" it says {{{<a href="{url}{sessionvars%urlparameter}&{lastchange|hgdate}">}}}. Then, your browser will mark the repos whose last change wasn't seen through the web interface as "unvisited links" (usually, different colour - you could change it using CSS). (Untested on IE, but works on FF.) | <<Include(A:style)>> <<Include(A:stub)>> Assume that you use the web interface and you would like to see whether someone committed a change since you've last looked at the repositories index. By default, you can see ''when'' the last change was committed; there is no easy way to see ''who'' did commit it - in particular, was it me or someone else? But there exists [[http://wiki.sheep.art.pl/Comfortable%20Counters|a rather funny hack I learned from my friend]] which helps: change the "map" file from the template you are using so that in the line "indexentry" it says {{{<a href="{url}{sessionvars%urlparameter}&{lastchange|hgdate}">}}}. Then, your browser will mark the repos whose last change wasn't seen through the web interface as "unvisited links" (usually, different colour - you could change it using CSS). (Untested on IE, but works on FF.) |
|
|
Assume that you use the web interface and you would like to see whether someone committed a change since you've last looked at the repositories index. By default, you can see when the last change was committed; there is no easy way to see who did commit it - in particular, was it me or someone else? But there exists a rather funny hack I learned from my friend which helps: change the "map" file from the template you are using so that in the line "indexentry" it says <a href="{url}{sessionvars%urlparameter}&{lastchange|hgdate}">. Then, your browser will mark the repos whose last change wasn't seen through the web interface as "unvisited links" (usually, different colour - you could change it using CSS). (Untested on IE, but works on FF.)