# # # patch "config.py.example" # from [7627e154e30ee6e88e547312876aa5cca8bf7c7e] # to [8c311335fc01aebe2a40524a71914fd828471873] # # patch "viewmtn.py" # from [7098c2756bcaabf1996aac87d0239fd977e434ee] # to [47b7bac2a8b6aad8e1c9f6c279c97f3fa6254c99] # ============================================================ --- config.py.example 7627e154e30ee6e88e547312876aa5cca8bf7c7e +++ config.py.example 8c311335fc01aebe2a40524a71914fd828471873 @@ -9,59 +9,61 @@ # If config changes are not picked up, reloading # the web server should solve the issue. # -# If you want to run multiple viewmtn installs from -# a single apache server, you might want to look at -# giving them seperate python interpreter instances, -# ie set PythonInterpreter viewmtn1, viewmtn2 etc -# in .htaccess. import sys -# the base URL of this install -base_url = 'http://localhost/~grahame/viewmtn/' +dynamic_uri_path = 'http://glamdring.local:8080/' +static_uri_path = 'http://glamdring.local/~grahame/viewmtn/static/' -# the path to the 'monotone' binary -monotone = '/opt/monotone/bin/monotone' +# the path to the 'mtn' binary +monotone = '/opt/mtn/bin/mtn' # the monotone database to be shared out # obviously, everything in this database might # become public if something goes wrong; probably # a good idea not to leave your private key in it -dbfile = '/path/to/monotone.db' +dbfile = '/Users/grahame/mtn/db/angrygoats.db' # where to find GNOME icons (used in manifest listing) -gnome_mimetype_icon_path = '/path/to/share/icons/gnome/' +# set to None to disableicon loading +gnome_mimetype_icon_path = '/Users/grahame/mtn/viewmtn/mimetypes/' # and where they are on the web gnome_mimetype_uri = 'mimetypes/' -# where to find GNU enscript -enscript_path = '/usr/bin/enscript' +# highlight +highlight_command = '/opt/local/bin/highlight' graphopts = { - # a directory (must be writable by the web user) - # in which viewmtn can output graph files - # (you should set up a cronjob to delete old ones - # periodically) - 'directory' : '/path/to/graph/directory', + # a directory (must be writable by the web user) + # in which viewmtn can output graph files + # (you should set up a cronjob to delete old ones + # periodically) + 'directory' : '/Users/grahame/mtn/viewmtn/graph/', - # a URL, relative or absolute, at which the files - # in the 'graphdir' directory can be found. Should - # end in a '/' character - 'uri' : 'graph/', + # a URL, relative or absolute, at which the files + # in the 'graphdir' directory can be found. Should + # end in a '/' character + 'uri' : 'graph/', - # the path to the 'dot' program - 'dot' : '/usr/bin/dot', + # the path to the 'dot' program + 'dot' : '/opt/local/bin/dot', - # options to use for nodes in the dot input file - # we generate. - 'nodeopts' : { 'fontname' : 'Windsor', - 'fontsize' : '8', - 'shape' : 'box', - 'height' : '0.3', - 'spline' : 'true', - 'style' : 'filled', - 'fillcolor' : '#dddddd' } + # options to use for nodes in the dot input file + # we generate. + 'nodeopts' : { 'fontname' : 'Monaco', + 'fontsize' : '8', + 'shape' : 'box', + 'height' : '0.3', + 'spline' : 'true', + 'style' : 'filled', + 'fillcolor' : '#dddddd' } } +# for tests/ +# don't worry about these unless you are going to run +# the tests +test_branch = "net.angrygoats.viewmtn" +#test_revision = "53b7a6866f0f7268a8eb721e8d74688de8567fb8" +test_revision = "ea14ea3aadb3a02ffe5041e0a98db15306cbcd81" ============================================================ --- viewmtn.py 7098c2756bcaabf1996aac87d0239fd977e434ee +++ viewmtn.py 47b7bac2a8b6aad8e1c9f6c279c97f3fa6254c99 @@ -327,6 +327,7 @@ class BranchChanges: diffs = '' rv.append((revision, diffs, ago, author, '\n'.join(changelog), shortlog, when)) return rv + branch = mtn.Branch(branch) per_page = 10 if from_change: