# # # patch "ChangeLog" # from [44fd082f5976f495f1f63b3728378c2189fcd069] # to [cacdd36e12c698cf754247fae7eff24ac5e7fc30] # # patch "templates/help.html" # from [f8faec929ff6f5fd1722240f12a8b398c88fb603] # to [3606a77689a20cb26c11679e23fc4779a0df851c] # # patch "templates/revisioninfo.html" # from [18daa6b4c21b0a208fe275530178c26c0c6cd824] # to [5bd8c23c564e52f9ac4b23f0caa905254f2f1492] # # patch "viewmtn.py" # from [2b53bb0a3baffea161703f8a23f2553cd4cbc47f] # to [b025f7cc219e5597bb29cb146a74bb91c59e691b] # ============================================================ --- ChangeLog 44fd082f5976f495f1f63b3728378c2189fcd069 +++ ChangeLog cacdd36e12c698cf754247fae7eff24ac5e7fc30 @@ -1,3 +1,9 @@ +2007-04-09 Grahame Bowland + + * put an explanation of the revision graph on + the revision/info/ page. + * update the robots.txt request handler + 2007-04-02 Grahame Bowland * more tests; check regexps (and found a bug ============================================================ --- templates/help.html f8faec929ff6f5fd1722240f12a8b398c88fb603 +++ templates/help.html 3606a77689a20cb26c11679e23fc4779a0df851c @@ -1,6 +1,8 @@ #extends base #def body +

Help

+

ViewMTN is a web interface to the Monotone revision control @@ -20,4 +22,14 @@ software page and follow the contact software page and follow the contact instructions there.

+ +

Reading revision graphs

+ +

+Reading the graph: each polygon contains a revision. The hexagon represents this revision, and arcs +represent ancestry. An arc from revision A to revision B indicates that revision A is an ancestor of revision B. +Arcs that do not connect to a node are connected to a node that was not drawn for space reasons. Any node should be +clickable, and will take you to that node's revision page. +

+ #end def ============================================================ --- templates/revisioninfo.html 18daa6b4c21b0a208fe275530178c26c0c6cd824 +++ templates/revisioninfo.html 5bd8c23c564e52f9ac4b23f0caa905254f2f1492 @@ -49,6 +49,7 @@ $imagemap #end filter
Ancestry of $revision +
reading this graph
#end def ============================================================ --- viewmtn.py 2b53bb0a3baffea161703f8a23f2553cd4cbc47f +++ viewmtn.py b025f7cc219e5597bb29cb146a74bb91c59e691b @@ -1087,9 +1087,11 @@ class RobotsTxt: web.header('Content-Type', 'text/plain') print "User-agent: *" for revision_page in ['tar', 'downloadfile', 'graph', 'file', 'browse', 'diff', 'info', 'graph']: - for access_method in ['/revision/', '/branch/head/', '/branch/anyhead/']: + # the goal is just to let a robot trawl through the most recent changes, and deny access + # to expensive pointless things. We don't want a robot indexing every file in every revision, + # as this is an enormous amount of information. + for access_method in ['/revision/', '/branch/head/', '/branch/anyhead/', '/branch/changes/from/', '/json/', '/mimeicon/']: print "Disallow:", access_method + revision_page - urls = ( r'/', 'Index', #done r'/about', 'About', #done @@ -1138,8 +1140,6 @@ if __name__ == '__main__': func = lambda : per_request_wrapper(web.webpyfunc(urls, fvars=globals())) web.run(func, globals(), web.reloader) - - ### ### vi:expandtab:sw=4:ts=4 ###