- fix syntax to be Python 1.5.2 compatible
- no += operator
- no "value in dict" operations
- remove a,b=c,d types of assignments; there is no reason to do tuple
packing/unpacking; just use two assignments
- rename ViewcvsException to ViewCVSException; leave in a grandfather
- couple style nits
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@632 8cb11bc2-c004-0410-86c3-e597b4017df7
this was the best (and easiest) change compared to changing the type
because of the possible introduction of subtle differences in the treatment
of VARCHAR and TEXT.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@628 8cb11bc2-c004-0410-86c3-e597b4017df7
1) There's a new way to pass it parameters. You can write:
ALL <VIEWCVS_INSTALLATION_DIRECTORY>/loginfo-handler %{sVv}
instead of:
ALL (echo %{sVv}; cat) | <VIEWCVS_INSTALLATION_DIRECTORY>/loginfo-handler
although for backwards compatibility, the old invokation still works. The
reason for the change is to make life easier for windows users who do not
typically have cat and a unix-style echo command installed on their machines.
2) It now sort of supports spaces in file names. Current versions of CVS pass
loginfo parameters in a space-separated string without bothering to escape the
spaces that can occur in filenames within the string. This can make it
impossible to unambiguously parse, so a heuristic is used to guess which spaces
are meant to be separators and which are part of file names. (See the
documentation string for the HeuristicArgParse() function for a description of
how it works). The heuristic should be pretty reliable when spaces are used in
filenames AND directory names, extremely reliable when spaces are allowed in
EITHER filenames OR directory names, and completely reliable in the
unambiguous case when there are no spaces in path names.
There is a completely different situation with CVSNT. CVSNT does escape spaces
and special characters with backslashes so no heuristic is needed. A separate
parsing routine is used for this case.
3) By default the loginfo handler will run the CVSNT parsing routine on windows
and the heuristic parsing routine on all other platforms. But since CVSNT has
been backported to Unix, there may be some people who need to override the
default. This can be done by tacking on a second parameter:
ALL <VIEWCVS_INSTALLATION_DIRECTORY>/loginfo-handler %{sVv} <arg2>
where <arg2> is either "cvs", "cvsnt", or "brokencvsnt". "brokencvsnt" is for
some semi-recent versions of CVSNT which mistakenly escaped filenames twice.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@604 8cb11bc2-c004-0410-86c3-e597b4017df7
- changed some popen calls to discard warnings from RCS utilities that occur
when reading CVSNT RCS files with nonstandard fields
- caused exit after tarball generation to prevent html from being appended
to the end of the tarball
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@602 8cb11bc2-c004-0410-86c3-e597b4017df7
function before sending them to the database to avoid the problems with
multiple path spellings on windows
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@600 8cb11bc2-c004-0410-86c3-e597b4017df7
passing them to the database. also changed loginfo-handler to print
errors to the standard error stream instead of the standard out so
messages can get forwarded to the CVS client.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@594 8cb11bc2-c004-0410-86c3-e597b4017df7
- added debugging mode for popen which can display the input and
output from child processes (only works on windows for now)
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@592 8cb11bc2-c004-0410-86c3-e597b4017df7
- added support for php colorizing (using the colorizing capabilities of the
php interpreter)
- replaced error() function with a ViewCVS exception class
- added explicit text 't' and binary 'b' mode flags to popen calls
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@591 8cb11bc2-c004-0410-86c3-e597b4017df7
- made database store times in UTC by default instead of using
the local timezone of the machine running ViewCVS. For backwards
compatibility a global variable dbi.dbi_utc_time can be set to
zero to use old behavior
- fixed use of some nonexistent constants in cvsdb.py
- allow forward slashes in directory and repository conditions
of database searches regardless of the default path separator
used by the underlying os
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@588 8cb11bc2-c004-0410-86c3-e597b4017df7
- escaped backslashes in regular expressions
- added viewcvs.asp and query.asp to FILE_INFO_LIST
- set default install path to "Program Files" directory
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@585 8cb11bc2-c004-0410-86c3-e597b4017df7