Commit Graph

918 Commits (50e1e87f71e9436de17050f61058a657842bcb2f)

Author SHA1 Message Date
gstein 6227db7a91 Various small changes:
- 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
2003-02-27 21:34:57 +00:00
cmpilato fa4ad62287 Just some 80-column formatting changes.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@631 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-27 21:26:11 +00:00
gstein 9c346b051f Ensure that we open ,v files in binary mode.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@630 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-26 02:31:31 +00:00
rey4 4e9a300681 fixed interpretation of win32file.ReadFile() return value
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@629 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-26 01:39:51 +00:00
timcera e0f09153bb Changed the length of dir and file VARCHAR fields from 128 to 255. I felt
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
2003-02-22 03:52:14 +00:00
rey4 c8d318c670 replaced += operation with call to list extend method for pre-2.0 python compatibility
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@627 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-20 10:43:11 +00:00
rey4 b85fb5485e fix enscript documentation
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@626 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-20 10:22:03 +00:00
rey4 a79f56d178 bugfix: enabled display of pipe_cmds error streams in debug mode
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@625 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-20 10:21:08 +00:00
rey4 4e2aa11281 changed installer to not install windows-only files on unix!
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@624 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-19 23:24:29 +00:00
rey4 74b01543ae Updated with new locations of asp and mod_python files
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@623 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-19 22:51:27 +00:00
rey4 82729d4181 simplified apache handler using execfile()
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@622 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-19 06:23:32 +00:00
rey4 e586a6785b Now adds "_page" suffix to module_name once instead of twice
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@621 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-19 05:39:00 +00:00
rey4 90c060be4c - moved global g_name_printed variable into server.pageGlobals
- fixed scoping problem in Request.__init__()


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@620 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-19 05:35:41 +00:00
rey4 358a5c2aa5 got rid of unneccessary imports
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@619 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-19 05:33:07 +00:00
rey4 c95a191275 replaced prints with writes
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@618 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-19 05:31:35 +00:00
rey4 72c395bc35 moved ASP and mod_python folders out of "cgi" directory
and into the "windows" area. Updated windows readme with
the new locations


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@617 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-19 05:29:21 +00:00
rey4 69b548a1b3 important bugfix for loginfo handler, didn't handle multidigit version numbers
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@616 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:56:35 +00:00
rey4 2cb8aa851b added environment variable dump
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@615 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:56:12 +00:00
rey4 e6d529b874 renamed variable
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@614 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:55:42 +00:00
rey4 5786f0958c commited Ivo Roessling's bugfix
http://mailman.lyra.org/pipermail/viewcvs/2003q1/001622.html


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@613 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:55:26 +00:00
rey4 27be5778fc fix for mod_python
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@612 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:55:04 +00:00
rey4 5a7ae45fa1 minor changes to sapi interface for mod_python support
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@611 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:54:41 +00:00
rey4 1d1816cc8c added the new mod_python files
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@610 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:54:21 +00:00
rey4 c23a80b4fe removed bit about mxDateTime and updated information about loginfo handler
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@609 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:53:44 +00:00
rey4 6037eefa8c added a new 0.9 section with blurb about UTC times in database
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@608 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:53:00 +00:00
rey4 6ab242782a removed bit about mxDateTime
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@607 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:52:26 +00:00
rey4 c878d98e57 readme from third release
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@606 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:49:24 +00:00
rey4 3127bf9af6 readme from second release
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@605 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-18 11:48:11 +00:00
rey4 db8777345b There are a few significant changes to the loginfo handler script.
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
2003-02-11 03:09:17 +00:00
rey4 dea026e417 - changed some popen calls to discard warnings from RCS utilities that occur
when reading CVSNT RCS files with nonstandard fields


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@603 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-11 02:59:58 +00:00
rey4 2f8d06bd7c - added C++ formatting for .hpp extension
- 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
2003-02-11 02:59:25 +00:00
rey4 d8b66eebde - fixed debug.PrintStackTrace() function
- updated child process tracker to use the sapi.server.pageGlobals dictionary


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@601 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-11 02:58:04 +00:00
rey4 8ad4c2657e - now converts path names to a canonical format with the os.path.normcase()
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
2003-02-11 02:57:21 +00:00
rey4 6659847cb7 - removed unneccesary cvsroot path manipulation
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@599 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-11 02:56:33 +00:00
rey4 b7877e0d0c - removed hardcoded links in query page
- replaced cvsroot_name_from_path() function with a lookup table


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@598 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-11 02:56:11 +00:00
rey4 561a2074d3 - removed hardcoded links in query page
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@597 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-11 02:55:40 +00:00
rey4 0ecbd1d45d - added sapi.server.pageGlobals dictionary to hold values and objects that
need to be kept for the duration of a page load


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@596 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-11 02:54:53 +00:00
rey4 6b47a6c80f - explicitly set text and binary modes on calls to popen
- replaced some convoluted time converting code with a call to compat.timegm()


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@595 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-09 10:10:43 +00:00
rey4 bed66c3ea8 now replaces forward slashes in windows paths with backslashes before
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
2003-02-09 10:05:00 +00:00
rey4 458cfb4785 removed this unused copy of popen.py (more recent version is lib/popen.py)
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@593 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-09 10:00:13 +00:00
rey4 f6f2654281 - modified popen module to work on windows
- 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
2003-02-09 09:57:46 +00:00
rey4 99b5381080 - updated to use new sapi module
- 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
2003-02-09 09:50:44 +00:00
rey4 e808ff8ce9 - updated to use new sapi module
- now can display local times if the use_localtime configuration option
  is set


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@590 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-09 09:49:00 +00:00
rey4 e7cb800f6d added new sapi module which abstracts away differences between the different
server environments that ViewCVS runs on (CGI, ASP, standalone)


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@589 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-09 09:48:05 +00:00
rey4 007ea0d99d - got rid of mxDateTime dependency
- 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
2003-02-09 09:33:12 +00:00
rey4 2b2f676ee3 worked around lack of working popen2.Popen3 class on windows
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@587 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-09 09:21:08 +00:00
rey4 2a8a87b1a6 updated to cope with colons and backslashes in windows paths
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@586 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-09 09:17:55 +00:00
rey4 c10162e3da updated installer for windows compatibility
- 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
2003-02-09 09:16:09 +00:00
rey4 ac310d82cb fixed line endings
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@584 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-08 01:15:07 +00:00
timcera 595556b544 Need to set CVSROOT in order for spawned RCS utilities to correctly
expand $CVSHeader$.  See patch:
http://sourceforge.net/tracker/index.php?func=detail&aid=636331&group_id=18760&atid=318760


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@583 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-02-01 05:42:29 +00:00