C. Michael Pilato <cmpilato@collab.net> first reported this bug
on the dev list.
* lib/viewcvs.py
(Request.get_link):
add trailing slashes on revision view links
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@998 8cb11bc2-c004-0410-86c3-e597b4017df7
(Request.run_viewcvs): If there is no rootname, set a default one so
that further attempts to use it don't choke.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@996 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(view_markup):
don't set 'nav_file' template variable
* templates/markup.ezt
remove the clickable path right before the revision information
* templates/include/dir_header.ezt
remove clickable path in "Current Directory" row of summary table
* website/upgrading.html
add documentation on 'nav_file' template variable
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@994 8cb11bc2-c004-0410-86c3-e597b4017df7
had one, but it got lost in the sauce.
* templates/markup.ezt
add (log) link right before (download) and (as text) links
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@992 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(Request.run_viewcvs):
add trailing slash to all directory paths, not just paths
for directory listing pages
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@991 8cb11bc2-c004-0410-86c3-e597b4017df7
the repository in apache based on the URL.
Thanks to Jonathan <voigtjr@gmail.com> for bringing this issue to my
attention on the users' list.
* lib/viewcvs.py
(Request.run_viewcvs):
add redirects for weird urls
(view_directory):
don't redirect here when there's no trailing slash; it's taken
care of in run_viewcvs
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@988 8cb11bc2-c004-0410-86c3-e597b4017df7
(PrintException): Escape the error message so it doesn't goof up
HTML display.
* viewcvs/lib/viewcvs.py
(Request.run_viewcvs, _validate_param): Don't escape params in
strings of raised exceptions, as that's the exception-handling
code's job.
(nav_header_data, common_template_data, clickable_path, view_log,
view_directory): Escape template data that needs escapin'.
(view_markup): Use un-escaped filename instead of the one in the
data dictionary.
(view_checkout): Re-org a little bit so that fp is always explicitly
closed.
(copy_stream): Instead of defaulting the output stream to None, and
letting None mean "gimme sys.stdout", just make the default output
sys.stdout.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@986 8cb11bc2-c004-0410-86c3-e597b4017df7
(view_doc): Refer to "static files" instead of "help files", and to
try to get all the exceptionful states to occur before we fire up
the output process.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@985 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(view_revision_svn): Convert 'text_mods' and 'prop_mods' members of
each changed path item into EZT booleans.
* templates/revision.ezt
Use if-any tests, instead of comparisons with "1", to determine if
each changed path item has text or property mods.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@984 8cb11bc2-c004-0410-86c3-e597b4017df7
Add support for DESTDIR installs, and support for --prefix and
--destdir command-line arguments (which override the defaults and
prevent prompts from appearing). DESTDIR install stuff from a
patch by Olaf Hering <olh@suse.de>, command-line arg stuff by me.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@983 8cb11bc2-c004-0410-86c3-e597b4017df7
Beranek <john@redux.org.uk> for reporting the bug on the users' list.
* tools/loginfo-handler
(HeuristicArgParse, CvsNtArgParse):
fix return values
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@982 8cb11bc2-c004-0410-86c3-e597b4017df7
links instead of cobbling them together in cvsgraph.conf. This way
cvsgraph.conf doesn't have to change if we add new url schemes and we can
handle sticky variables and root parameters without special case code.
* lib/viewcvs.py
(Request.get_url):
accept new "partial" argument to append trailing ? or & to generated
url
(view_cvsgraph):
pass get_url generated links to cvsgraph instead of url fragments
* cvsgraph.conf.dist
use the new links passed by ViewCVS
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@981 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/vclib/bincvs/__init__.py
(_log_path):
remove initialization of unused variable
(_check_path):
distinguish error messages that come from os.stat()
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@979 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/vclib/__init__.py
(DirEntry.__init__):
set "errors" member instead of "verboten"
* lib/vclib/bincvs/__init__.py
(CVSRepository.listdir):
don't skip "Attic" and "CVS" entries if we're not sure if they are
directories
don't skip entries in Attic/ when we can't tell if they are files or
directories
(CVSDirEntry.__init__):
use "errors" argument instead of "verboten"
(_get_logs):
don't set "DirEntry.log_errors" member, use "errors"
(_log_path):
don't return file access errors here, they are returned by _check_path
(_check_path):
return error strings on file access errors instead of simple booleans
* lib/vclib/ccvs/__init__.py
(CCVSRepository.dirlogs):
don't set "DirEntry.log_errors" member, use "errors"
* lib/vclib/svn/__init__.py
* lib/vclib/svn_ra/__init__.py
(get_logs):
don't set "DirEntry.log_errors" member
* lib/viewcvs.py
(view_directory):
use "DirEntry.errors" member instead of "log_errors"
(generate_tarball):
use "DirEntry.errors" member instead of "verboten"
* tools/cvsdbadmin
(RecurseUpdate):
use "DirEntry.errors" member instead of "verboten"
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@978 8cb11bc2-c004-0410-86c3-e597b4017df7
leading slashes, not put it through some hocus-pocus purification
ritual.
* lib/viewcvs.py
(_normalize_path):
just trim leading slashes
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@973 8cb11bc2-c004-0410-86c3-e597b4017df7
of the ViewCVS web pages any longer. This begins a journey of
organization and updating that has been long past due. And hey, if
folks hate it -- it's under version control.
* website/contact.html
* website/download.html
* website/images/bg-grad.jpg
* website/images/title.jpg
* website/styles.css
New files.
* website/contributing.html
* website/index.html
* website/license-1.html
* website/upgrading.html
* website/who.html
Heavily modified files.
* website/images/chalk.jpg
* website/images/logo.png
Removed.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@965 8cb11bc2-c004-0410-86c3-e597b4017df7
(view_log): Only show download hrefs for files, and make view hrefs
for directories show the directory view.
* viewcvs/templates/include/branch.ezt
Only display the view_href if it exists.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@962 8cb11bc2-c004-0410-86c3-e597b4017df7
(view_log): Always expose the view_href and download_href.
* templates/log.ezt
* templates/log_table.ezt
Lose the "if CVS" condition I added for some includes a while ago.
* templates/include/branch.ezt
Always show bookmarkable links to HEAD/download.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@961 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/viewcvs.py
(_re_rewrite_url): Look for the HTML-encoded version of ampersands
in URLs ("&").
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@960 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/vclib/bincvs/__init__.py
(_log_path)
no need to deal with Attic paths here, they are filtered out in
listdir
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@954 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/rlog.py
deleted
* lib/cvsdb.py
(RLogDataToCommitList):
removed
(GetCommitListFromRCSFile):
change to use vclib instead of rlog module
(GetCommitListFromRCSFile, GetUnrecordedCommitList):
update to accept vclib-style path_parts arguments
* lib/vclib/bincvs/__init__.py
(BinCVSRepository.filelog):
accept "cvs_pass_rev" option for passing -r arguments to rlog
(_match_revs_tags):
make this function work with an incomplete list of revisions
instead of crashing. This is neccessary when an -r argument
is passed to rlog.
(_add_tag):
make this function work when we need to create a tag with no
revision object. We need this to create a HEAD tag when an -r
argument is passed to rlog and we don't know what the HEAD
revision is.
(fetch_log):
removed
* tools/cvsdbadmin
(RebuildFile):
removed, merged into UpdateFile
(UpdateFile)
accept new argument to reinsert all commits
(RecurseRebuild):
removed, merged into RecurseUpdate
(RecurseUpdate):
update to use vclib's listdir instead of os.listdir
(CommandRebuild, CommandUpdate):
removed, code moved into __main__ section
* tools/loginfo-handler
(FileData, CommitFromFileData, GetUnrecordedCommitList):
removed, these were just wrappers over the cvsdb interface
(HeuristicArgParse, CvsNtArgParse)
return tuples describing file data instead of file data objects
(ProcessLoginfo):
update to use cvsdb interface
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@953 8cb11bc2-c004-0410-86c3-e597b4017df7
- Stop converting directory and file paths to lower case with native
slashes before storing them in the database. Instead store with
preserved case and forward slashes.
- Stop trying to clean up paths haphazardly all over the cvsdb module,
instead expect paths to be normalized before they get passed to
cvsdb.
* lib/cvsdb.py
(Commit.SetRepository, Commit.SetDirectory, Commit.SetFile,
CheckinDatabaseQuery.SetRepository,
CheckinDatabaseQuery.SetDirectory):
remove path cleanup code
(RLogDataToCommitList)
don't strip repository prefix because rlog module now does it
(CleanRepository):
new function
* lib/rlog.py
(_get_co_file):
change to return paths with forward slashes and without repository
prefixes
(GetRLogData):
update call to _get_co_file
* tools/cvsdbadmin
(UpdateFile, CommandUpdate, RebuildFile, CommandRebuild)
remove calls to normcase here
(module code):
use CleanRepository function to clean up repository path
* tools/loginfo-handler
(CleanDirectory):
removed
(HeuristicArgParse, CvsNtArgParse):
don't call CleanDirectory or normcase here
(HeuristicArgParseDirectory):
remove stray print statement
(module code):
use cvsdb.CleanRepository function to clean up repository path
* tools/svndbadmin
(module code):
use cvsdb.CleanRepository function to clean up repository path
* lib/viewcvs.py
(view_query):
change to use forward slashes in directory names instead of native
slashes
use cvsdb.CleanRepository function to clean up repository paths
* lib/query.py
(build_commit):
change to handle forward slashes in directory paths instead of
native slashes
(run_query):
use cvsdb.CleanRepository function to clean up repository path
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@952 8cb11bc2-c004-0410-86c3-e597b4017df7