hiding the project info box on the webpage which doesn't also have the
unfortunate side effect of losing the links for project editing,
requesting membership, and other such useful things.
* index.html
Lose a JavaScript redirect hack for a style override hack.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1230 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(generate_page): pass file object associated with current request
to EZT instead of sys.stdout, which under mod_python is a proxy
that tries to figure out the current request based on the current
thread id. It can't be used in worker threads spawned by
popen.pipe_cmds
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1229 8cb11bc2-c004-0410-86c3-e597b4017df7
* viewvc/lib/config.py (Config.set_defaults)
Set use_highlight to 0 by default, so that the default configuration
has a mildly higher chance of not being broken out of the box.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1228 8cb11bc2-c004-0410-86c3-e597b4017df7
dynamically fake a non-root location for a running ViewVC process.
Reasoning? It offends me that "viewcvs" was hardcoded in ... just
seems wrong.
* bin/standalone.py
(Options): Populate a new script_alias member.
(StandaloneServer.do_POST, StandaloneServer.is_viewcvs,
StandaloneServer.redirect, StandaloneServer.run_viewcvs): Use
options.script_alias instead of a hardcoded "viewcvs".
(cli): Parse new --script-alias/-s option for dynamically defining
the ScriptAlias. Rework the usage message for my own pleasure.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1227 8cb11bc2-c004-0410-86c3-e597b4017df7
of an patch from Andreas Amann (sf user ahndee) in issue 156.
* lib/viewcvs.py
(MarkupShell.__call__): make input file pointer optional
(MarkupEnscript.__init__, MarkupEnscript.__call__): write input to
temporary file so enscript can decide what kind of highlighting to do
based on the file name
(enscript_extensions, enscript_filenames): removed
(view_markup): update call to MarkupEnscript
* lib/compat.py
(mkdtemp): new function
* lib/config.py
* viewcvs.conf.dist
* viewvc.org/upgrading.html
remove "disable_enscript_lang" option
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1224 8cb11bc2-c004-0410-86c3-e597b4017df7
and bug report by Gerard Gerritsen (sigcafe).
* viewcvs.conf.dist
fix typos and old reference to dir_alternate in comments
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1222 8cb11bc2-c004-0410-86c3-e597b4017df7
use_rcsparse is enabled.
* lib/vclib/ccvs/__init__.py
(CCVSRepository.dirlogs): set DirEntry.path member
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1221 8cb11bc2-c004-0410-86c3-e597b4017df7
output from last command goes. For now only the unix implementation
respects it, windows implementation always writes to standard output
as before.
* lib/popen.py
(pipe_cmds): add "out" argument
* lib/viewcvs.py
(MarkupShell.__call__): update call to pipe_cmds()
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1220 8cb11bc2-c004-0410-86c3-e597b4017df7
* templates/include/file_header.ezt
link to current directory listing instead of parent directory
* templates/include/log_header.ezt
don't display "Links to HEAD:" stuff for directories. With
change above it's redundant
* templates/log.ezt
* templates/log_table.ezt
label directory links as "Directory Listing" instead of "(view)"
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1219 8cb11bc2-c004-0410-86c3-e597b4017df7
paths shown in the subversion revision view and in query results.
* lib/config.py
* viewcvs.conf.dist
add "limit_changes" option
* lib/cvsdb.py
(LazyCommit): new class
(CheckinDatabase.LazyCommit): return LazyCommit objects instead of
fetching all properties of all commits
* lib/viewcvs.py
(_sticky_vars, _legal_params): add "limit_changes" query parameter
(view_revision): handle "limit_changes" and add links to manipulate it
(view_queryform, build_commit, view_query): same
* templates/query_form.ezt
add field to set "limit_changes"
* templates/query_results.ezt
wherever changed files are being hidden, add link to show all files
* templates/revision.ezt
same, and if that link is clicked, show another link to restore
the default limit_changes so you can toggle back and forth
* viewvc.org/template-authoring-guide.html
* upgrading.html
document new template variables and configuration option
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1218 8cb11bc2-c004-0410-86c3-e597b4017df7
to do this for windows releases, but it's better just to pre-wrap it
and keep the release process simple.
* windows/README
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1217 8cb11bc2-c004-0410-86c3-e597b4017df7
sourceforge user "tomy"
* lib/win32popen.py
don't import win32security, not needed and doesn't work on NT4
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1215 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(common_template_date):
only set "rss_href" when it will be valid URL
(build_commit):
only set commits.rev for subversion queries
rename some of the new RSS template variables
commits.title -> commits.short_log
commits.url -> commits.rss_url
commits.date -> commits.rss_date
* templates/include/header.ezt
* templates/rss.ezt
update for changed template variables
* viewvc.org/template-authoring-guide.html
* viewvc.org/upgrading.html
* CHANGES
update documentation
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1214 8cb11bc2-c004-0410-86c3-e597b4017df7
GNU Highlight instead of the Highlight program we support. The two
programs have the same name, and do the same things, but are not at
all related. Patch by Wataru Hirayama <hirayama@rr.iij4u.or.jp>
* INSTALL
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1213 8cb11bc2-c004-0410-86c3-e597b4017df7
in issue 179. (All changes are his except for a fix in standalone.py,
and a line initializing "commits.url" template variable to None
in build_commit).
* lib/config.py
* viewcvs.conf.dist
add [cvsdb] rss_row_limit config option
* lib/cvsdb.py:
(CheckinDatabase.CreateSQLQueryString): make "LIMIT" value customizable
(CheckinDatabaseQuery.__init__): set new "limit" member
(CheckinDatabaseQuery.SetLimit): new
* lib/viewcvs.py:
(_legal_params): add "limit" parameter
(common_template_data): add "rss_href" variable
(make_rss_time_string): new
(build_commit): add commits.title, commits.rev, commits.author,
commits.date, commits.url template variables
(view_query): handle "limit" parameter and new "rss" format
* templates/include/header.ezt
use new rss_href variable
* templates/rss.ezt
new
* bin/standalone.py
(run_viewcvs): set HTTP_HOST environment variable
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1212 8cb11bc2-c004-0410-86c3-e597b4017df7
Patch written by sunjammerx in issue 106.
* lib/config.py
(Config.set_defaults):
set default port
* lib/cvsdb.py
(CheckinDatabase.__init__, ConnectDatabaseReadOnly, ConnectDatabase):
handle port value
* lib/dbi.py
(connect):
same
* INSTALL
* viewcvs.conf.dist
update
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1211 8cb11bc2-c004-0410-86c3-e597b4017df7
jump to the current revision on the log page, like they used
to in 0.9.x. This patch by Jordan Russell <jr-list-2005@quo.to>
from issue 109.
* lib/viewcvs.py
(common_template_data):
set "log_rev_href" template variable
* templates/include/file_header.ezt
use "log_rev_href" template variable
* viewvc.org/template-authoring-guide.html
update
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1210 8cb11bc2-c004-0410-86c3-e597b4017df7
revision numbers. Patch by Paul Koning (pkoning)
* lib/viewcvs.py
(view_query):
when roottype != cvs, only group commits from same revision
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1209 8cb11bc2-c004-0410-86c3-e597b4017df7
of a patch by Andreas Amann (aamann) from issue 126.
* lib/viewcvs.py
(MarkupHighlight):
new EZT callback for invoking highlight
(view_markup):
use MarkupHighlight class when "use_highlight" option enabled
* lib/config.py
* viewcvs.conf.dist
add new configuration options for highlight
* templates/docroot/styles.css
add ".line" style to make highlight line number stand out
* INSTALL
mention highlight required version and home page
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1208 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(MarkupShell):
base class for colorizing callbacks that use shell tools
(MarkupEnscript, MarkupPHP):
make these into callbacks instead of pseudo-file pointers, eliminate
the need for temporary files since with callbacks these tools can
run in the middle of template execution and send their output to
straight to stdout.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1207 8cb11bc2-c004-0410-86c3-e597b4017df7
Grumble. Fix the background "color" of the transparent portions to
be white for whack Internet Explorer's sake.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1204 8cb11bc2-c004-0410-86c3-e597b4017df7
(parse_date): Use compat.timegm() instead of time.mktime(). This closes
issue #5, and comes with rey4's money back guarantee.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1203 8cb11bc2-c004-0410-86c3-e597b4017df7
present in old versions of mysql-python.
escape() has been a method of the _mysql.Connection objects since the very
beginning, but didn't get exposed in the python objects until 0.9.2
when they made the python class inherit from the C one. Python connections
have had an equivalent literal() method since 0.9.0.
* lib/cvsdb.py
call conn.literal() method instead of conn.escape()
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1198 8cb11bc2-c004-0410-86c3-e597b4017df7
Yoshinori Okuji (yo). This is also issue 184
* lib/viewcvs.py
(rcsdiff_date_reformat):
avoid an exception when date is None
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1197 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(parse_date): Use time.altzone when DST is in effect. Fix suggested
by SourceForge user "johmart".
NOTE: This change was reverted in r2001.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1196 8cb11bc2-c004-0410-86c3-e597b4017df7
Ah, forget the custom style stuff right now. The color clash with the
Tigris.org branding is awful.
* www/images,
* www/styles.css
Removed.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1195 8cb11bc2-c004-0410-86c3-e597b4017df7
Minor tweaks to preformatted section.
* www/styles.css
Gut out unused styles, and remove more font size dictation.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1194 8cb11bc2-c004-0410-86c3-e597b4017df7
Use CSS for preformatted text instead of <pre> tags.
* www/styles.css
Stop shrinking the font size.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1193 8cb11bc2-c004-0410-86c3-e597b4017df7
site content creation.
* www
New tigris.org magic website directory.
* www/project_tools.html
* www/index.html
New site files.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1189 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(view_log): Pass '1' for the 'svn_show_all_dir_logs' option in calls to
repos.itemlog().
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1187 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/vclib/svn/__init__.py
(BlameSource.__init__, BlameSourceKludge.__init__): Use both the @-syntax
and the -r parameter to 'svn' to get the right blame information.
Patch by Paul Koning <pkoning@tigris.org>.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1186 8cb11bc2-c004-0410-86c3-e597b4017df7
reported by cmpilato.
* lib/viewcvs.py:
(Config.load_config):
re-add line from before r1173 that assigns "base" member
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1185 8cb11bc2-c004-0410-86c3-e597b4017df7
sourceforge user "dchabal" in issue 131. The same bug was also reported
in issues 1, 17, 146.
* bin/make-database
remove "DEFAULT '0'" clauses from auto_increment column declarations
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1184 8cb11bc2-c004-0410-86c3-e597b4017df7
by Andreas Amann (aamann) caused by revision 1173
* viewcvs-install
(FILE_INFO_LIST):
add new handler.py file
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1183 8cb11bc2-c004-0410-86c3-e597b4017df7
previous iterations. This change shouldn't affect any
user-visible ViewVC behavior.
* lib/viewcvs.py
(_last_rev):
removed
(view_directory):
update call to pathrev_form
(pathrev_form):
find lastrev inside here instead of taking lastrev parameter
call svn.last_rev instead of _last_rev
make some other simplifications
(redirect_pathrev):
call svn.last_rev instead of _last_rev
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1181 8cb11bc2-c004-0410-86c3-e597b4017df7