windows when lowercase drive letters are used in cvs paths in
viewcvs.conf.
* lib/vclib/bincvs/__init__.py
(_paths_eq):
new function for comparing paths that works on case-insensitive
filesystems
(BinCVSRepository.openfile, _get_logs):
use new path comparison function
(_parse_co_header, _parse_log_header):
stop cleaning up returned filenames, it's no longer neccessary
with new path comparison function
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@950 8cb11bc2-c004-0410-86c3-e597b4017df7
* windows/README
- add troubleshooting info for CreateProcess exception
- consolidate information about old CVSNT bugs
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@949 8cb11bc2-c004-0410-86c3-e597b4017df7
(view_log): Dictate the 'where' and 'pathtype' values to the
URL-generating function when making download links. Patch by
Stefan Haller <haller@ableton.com>.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@946 8cb11bc2-c004-0410-86c3-e597b4017df7
dev list that ended at
http://mailman.lyra.org/pipermail/viewcvs-dev/2004-September/001769.html
* templates/docroot/images/ascending.png
* templates/docroot/images/descending.png
* templates/docroot/images/down.png
* templates/docroot/images/up.png
rename ascending and descending images to down and up based on the
direction of the arrows
* templates/directory.ezt
* templates/dir_alternate.ezt
update to use new image names
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@945 8cb11bc2-c004-0410-86c3-e597b4017df7
directories works on windows.
* lib/cvsdb.py
(EscapeLike):
new function
* lib/viewcvs.py
(view_query):
escape directory paths before using them in LIKE comparisons
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@944 8cb11bc2-c004-0410-86c3-e597b4017df7
pages. It was was added in rev 1.158.
* lib/viewcvs.py
(view_log):
remove 'filename' template variable
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@943 8cb11bc2-c004-0410-86c3-e597b4017df7
template variables, also fix some existing entries in the file.
* website/upgrading.html
(sortdir_up_href, sortdir_down_href, roots):
add new documentation about these variables
(roottype, rootname, pathtype, raw_diff):
fix these entries up
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@942 8cb11bc2-c004-0410-86c3-e597b4017df7
- Don't pass "text/plain" as a MIME type to templates when the real
type is unknown, pass None instead
- Load MIME types file once after reading the ViewCVS configuration
instead of reloading at each request.
* lib/viewcvs.py
(Request.run_viewcvs):
set Request.mime_type member here
(Request.setup_mime_type_info):
removed
(guess_mime, is_plain_text):
new
(is_text, is_viewable_image, view_checkout):
change to cope with None MIME types, treating them like text
(view_markup):
use new is_plain_text function
(view_directory, search_files):
use new guess_mime function
(view_log):
make use of Request.mime_type member and the new is_plain_text
function
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@938 8cb11bc2-c004-0410-86c3-e597b4017df7
Python 2.3 installations without mxDateTime.
Thanks to paul@times-interactive.com for bringing the bug and fix
to my attention on the users' list.
* lib/dbi.py
(TicksFromDateTime):
handle case where MySQLdb returns datetime objects
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@936 8cb11bc2-c004-0410-86c3-e597b4017df7
release. There's still a lot of room for improvement, but there
should be no gaping holes or inaccuracies.
* INSTALL
update old paths
remove mention of svn_parent_path
remove advice about trailing slashes in the Troubleshooting
section. They're nice, but optional now that we don't use
relative links.
* README
add pointer to windows/README
* templates/docroot/help_logtable.html
document the missing columns
* website/upgrading.html
document the configuration options
add a word of advice about upgrading with custom templates
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@935 8cb11bc2-c004-0410-86c3-e597b4017df7
* website/who.html
add James Henstridge and Lucas Bruand and list the various
peoples' contributions
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@934 8cb11bc2-c004-0410-86c3-e597b4017df7
* CHANGES
(Version 1.0):
add new features and bugfixes. I came up with the list by scanning
the CVS logs since 0.9.2 for user-visible changes, so it should
be pretty complete.
(Version 0.9.2):
correct release date
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@933 8cb11bc2-c004-0410-86c3-e597b4017df7
* templates/docroot/styles.css
(.vc_navheader):
switch to gray background because blue links on purple background
are hard to read
* header.ezt
(nav_path):
make it bold
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@930 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(Request.run_viewcvs):
don't do blind redirects when we have a "root" parameter in
root_as_url mode because it can lead to multiple redirects
and redirects to invalid urls
don't even try to interpret non-root_as_url url's in
root_as_url mode when they don't specify an explicit
root. It can't be done reliably and there's little
value in it anyway
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@929 8cb11bc2-c004-0410-86c3-e597b4017df7
page. They weren't terribly useful or accurate.
* lib/viewcvs.py
(Request.setup_mime_type_info):
stop setting "default_viewable" member
(view_auto):
stop using request's "default_viewable" member, just compute value
on the fly
(view_log):
stop setting "viewable" and "is_text" template variables
* website/upgrading.html
update documentation
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@928 8cb11bc2-c004-0410-86c3-e597b4017df7
externally visible difference is that in root_as_url mode,
links with "root" parameters no longer get a redundant path
component pointing at the current root.
* lib/viewcvs.py
(_sticky_vars):
don't make root a sticky var, it gets special treatment anyway
and having it sticky just makes things more complicated
(Request.get_link):
remove redundant and never-used rootname argument
make logic that suppresses sticky variables on checkout and
tarball links more explicit
change code for merging sticky variables to operate on the
dictionary of parameters instead of building a new dictionary
make code that handles the "root" parameter generate minimal
URLs in all circumstances
(Request.get_options):
removed, logic moved into Request.get_link
(Request.sticky_vars):
new method that returns a dictionary of stick variables
(view_annotate, view_cvsgraph):
call Request.sticky_vars instead of Request.get_options
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@926 8cb11bc2-c004-0410-86c3-e597b4017df7
we can get rid of the alternative icons we provided for the standalone web
server and IIS. We can also get rid of the "icons" configuration option.
* lib/apache_icons.py
* tools/bin2inline_py.py
removed, icons for the standalone server
* windows/icons/apache_pb.gif
* windows/icons/small/back.gif
* windows/icons/small/dir.gif
* windows/icons/small/text.gif
removed, icons for IIS
* templates/include/footer.ezt
point "Powered by Apache" image at /icons/apache_pb.gif instead of
[icons]/apache_pb.gif
* standalone.py
(apache_icons, icons_last_modified):
removed
(ViewCVS_Handler.do_GET):
remove handling of /icons/ paths
(serve):
stop setting options.icons config value
* viewcvs.conf.dist
(icons):
removed
* lib/config.py
(Config.set_defaults):
stop setting default options.icons config value
* lib/viewcvs.py
(common_template_data):
don't set "icons" template variable
* windows/README
(ICONS FOR IIS):
removed
(DOCROOT OPTIMIZATION):
new section about the docroot parameter
* website/upgrading.html
remove documentation for "icons" template variable, update
documentation for "docroot"
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@923 8cb11bc2-c004-0410-86c3-e597b4017df7
templates/docroot/
* templates/docroot/help_*.html, templates/docroot/styles.css: copied
from website/
* templates/docroot/images/*: copied from website/images/ or from Apache.
fix up the transparency on some of the PNGs (just 1-bit transparency
though, so they work with IE).
* lib/viewcvs.py (view_doc): update to the new location for documentation.
We can use the same location in the "installed" and "uninstalled" modes.
* viewcvs.conf.dist: update the comment about the docroot config value.
* templates/*.ezt: update for new icon locations.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@921 8cb11bc2-c004-0410-86c3-e597b4017df7
* viewcvs/lib/viewcvs.py
Update all uses of "ViewcvsException" to "ViewCVSException".
(_RCSDIFF_IS_BINARY): Make this value match the one used in templates.
(human_readable_diff): If rcsdiff comes back with the wrong version
information, raise an exception that error.ezt can handle. Also,
simplify the handling of rcsdiff_eflag.
(download_tarball, view_cvsgraph_image, view_cvsgraph_image): Raise
403 Forbidden's for disable features.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@920 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py: add an optional escape parameter to the get_url()
method, that will entity escape the URL.
Pass escape=1 to each call to get_url() that is used to construct a
URL for display in a template.
* lib/blame.py: fix up a small entity escaping problem here too.
* templates/revision.ezt: fix up a few HTML validity errors in this
template that were a lot more obvious after clearing up the other
errors.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@918 8cb11bc2-c004-0410-86c3-e597b4017df7
destroy URLs used by the svn_ra module.
* viewcvs/lib/config.py
(_parse_roots): Don't normalize the paths for roots here -- it will
destroy URLs.
* viewcvs/lib/viewcvs.py
(Request.run_viewcvs): Normalize them here, *after* we know what's a
URL and what's a normal path.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@917 8cb11bc2-c004-0410-86c3-e597b4017df7
misnesting of <form> and <table> tags.
* templates/include/diff_form.ezt: get rid of a similar problem in the
diff form.
Also simplify the form a bit for the case when there are no tags (ie.
subversion).
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@916 8cb11bc2-c004-0410-86c3-e597b4017df7
over yonder is right optional. Patch by Max Bowsher <maxb@ukf.net>.
Faux cowboy by cmpilato.
* lib/vclib/ccvs/rcsparse/common.py (_Parser.parse_rcs_admin)
* lib/vclib/ccvs/rcsparse/default.py (Parser.parse_rcs_admin)
* tparse/tparse.cpp (parse_rcs_admin)
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@914 8cb11bc2-c004-0410-86c3-e597b4017df7
Make the annotate data "smaller", and increase the padding between
columns.
* viewcvs/templates/annotate.ezt
Remove superfluous spaces in table cells. Mozilla is rendering
wrongly, presumably because the cells are using "nowrap" or "pre"
whitespace handling.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@912 8cb11bc2-c004-0410-86c3-e597b4017df7
(and honest).
* lib/viewcvs.py
(view_directory): Always calculate the num_dead variable with
truth. Just because we aren't showing dead files doesn't mean they
don't exist.
* templates/include/dir_header.ezt
Provide a single place for reporting the number of, and toggling the
display of, dead files.
* templates/directory.ezt
* templates/dir_alternate.ezt
Stop handling dead file display toggling on what appears (and yet
isn't) a per-item basis. Also, use Apache's broken.gif as the icon
for dead files.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@911 8cb11bc2-c004-0410-86c3-e597b4017df7
* templates/dir_alternate.ezt
fix handling of attic directories as in templates/directory.ezt, rev 1.47
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@910 8cb11bc2-c004-0410-86c3-e597b4017df7
weren't being escaped before being embedded in sql strings.
Also do some cleanup in dbi.py
* lib/cvsdb.py
(CheckinDatabase.SQLQueryListString):
escape string values using Connection.escape() method
(CheckinDatabase.CreateSQLQueryString):
update calls to SQLQueryListString()
* lib/dbi.py
(Cursor, Connection):
remove these proxy objects, they don't do anything
(connect):
return MySQLdb.Connection object instead of proxy object
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@909 8cb11bc2-c004-0410-86c3-e597b4017df7
instead of exposing them to users.
* templates/include/dir_footer.ezt
add link to show dead files
* templates/directory.ezt
remove code for detecting Attic entries,
change (in the attic) caption to (dead)
* lib/viewcvs.py
(Request.run_viewcvs):
handle old Attic URL's by redirecting,
remove unused request.full_name member
(get_up_path, _re_up_attic_path, nav_header_data, generate_tarball,
download_tarball):
remove code for handling Attic directories
(view_markup):
remove unused "full_name" variable
(view_directory):
remove code for handling Attic directories,
replace "no_match" template variable with "num_dead"
(view_log):
update call to get_up_path
(view_annotate, view_cvsgraph_image, view_cvsgraph, view_diff):
use CVSRepository.rcsfile to get path to rcs file
* lib/vclib/bincvs/__init__.py
(CVSRepository.itemtype):
look in Attic for repository files
(CVSRepository.listdir):
remove "cvs_list_attic" option, now always list attic files.
leave "Attic" and "CVS" directories out of returned listing.
(CVSRepository.rcsfile, CVSRepository._atticpath):
new methods
(BinCVSRepository.openfile, BinCVSRepository.filelog):
use CVSRepository.rcsfile to get path to rcs file
(_get_logs):
don't mark directories as dead
* lib/vclib/ccvs/__init__.py
(CCVSRepository.filelog, CCVSRepository.openfile):
use CVSRepository.rcsfile to get path to rcs file
* website/upgrading.html
document "no_match" and "num_dead" template variables
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@908 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/vclib/bincvs/__init__.py
(BinCVSRepository.openfile, BinCVSRepository.filelog, fetch_log):
update calls to _parse_log_header
(_re_log_error, _re_cvsnt_error, _re_lineno):
update regular expressions for parsing rlog error messages
(_parse_log_header):
do a better job of parsing rlog error messages and return messages
to callers
(_get_logs):
set new DirEntry.log_errors property and deal with multiple rlog error
messages about the same file and cases where error messages precede
file information
(_log_path):
return error info
* lib/vclib/ccvs/__init__.py
(CCVSRepository.dirlogs):
set new DirEntry.log_errors property
* lib/vclib/svn/__init__.py
(get_logs):
set new DirEntry.log_errors property
* lib/vclib/svn_ra/__init__.py
(get_logs):
set new DirEntry.log_errors property
* lib/vclib/__init__.py
(Repository.dirlogs):
document new DirEntry.log_errors property
* lib/viewcvs.py
(view_directory):
set new template variables
* website/upgrading.html
document new template variables
* templates/include/dir_footer.ezt
get rid of confusing "One or more files were unreadable" message.
We display more specific error messages in the directory list.
add links to set selection criteria at the bottom of "There are
[num_files] files, but none match the current selection criteria"
message
* templates/directory.ezt
* templates/dir_alternate.ezt
simplify the way error messages are displayed
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@907 8cb11bc2-c004-0410-86c3-e597b4017df7
use entry.filename as the location. This fixes the view/download links
when the log crosses a copy boundary. Fixes bug #999355.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@905 8cb11bc2-c004-0410-86c3-e597b4017df7
@ symbol as a character reference. This can trip up some email address
spiders, while being transparent to web browsers.
The idea came from Bugzilla.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@904 8cb11bc2-c004-0410-86c3-e597b4017df7
use the directory revision number as a weak etag.
(view_revision_svn): use the revision number as a weak etag.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@902 8cb11bc2-c004-0410-86c3-e597b4017df7
in a <label> element, so that users can click on the text to toggle
the value.
Quote a few unquoted attribute values.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@901 8cb11bc2-c004-0410-86c3-e597b4017df7