Commit Graph

420 Commits (c35dabcaeb81a30a79e2e538c330e9d8fa92b8b5)

Author SHA1 Message Date
pefu 67fe0ffd7c Untabified.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@227 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-16 09:05:16 +00:00
pefu 58f2c57c33 If the viewcvs.conf file contains in invalid setting of 'default_root',
viewcvs issues a very poor error message.  I've tried to improve that by
adding a simple print statement.

Ted Hobson wrote to the viewcvs users mailing list:
> Hi, I'm hoping I could get a little help here. I've installed viewcvs
[...]
> viewcvs.cgi and was returned the following error messages.
>
>       Python Exception Occurred
>
> Traceback (innermost last):
[...]
> in __init__
>     self.cvsroot = cfg.general.cvs_roots[self.cvsrep]
> KeyError: Development
>
> The lines of code it points to don't really help me at all. Could
> somebody explain what these lines are doing and what may be wrong?


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@226 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-16 08:41:10 +00:00
timcera 0268b877e5 Added imagemap feature to CvsGraph. Now can click on the image to go to that
particular revision, tag, or diff.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@225 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-12 05:17:00 +00:00
timcera 620307a64c Added installation of the ezt.py library, directory.ezt, and cvsgraphmkimg.cgi.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@224 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-12 04:51:19 +00:00
gstein e833b962b9 Don't try to process virtual hosts if the section is not present in the
configuration file.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@223 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-06 00:47:18 +00:00
gstein f9953b7d87 Remove some obsolete options. Point users at their new location.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@222 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-25 10:47:48 +00:00
gstein 0d62e2c0c9 Convert the rest of view_directory() over to use the directory.ezt template.
Directory pages (including the top-level root/module selection page) can now
be completely customized, without code changes.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@221 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-25 09:24:11 +00:00
gstein cf456c5cfb Add double-quote to the regex to allow (quoted) constants in the [is]
directive.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@220 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-25 09:15:14 +00:00
timcera e9dee7ae87 Added use_cvsgraph to default configuration. Set to '0'.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@219 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-24 22:39:03 +00:00
gstein ec99cb429b Shift more output generation from the code (viewcvs.py) into the template
(directory.ezt)


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@218 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-24 12:02:01 +00:00
gstein 8093438d6b begin a document with information about upgrading.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@217 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-24 12:00:50 +00:00
gstein a0135416b5 add a new directive: [is ref ref] or [is ref "value"]. like an "if"
statement, comparing the two values for equality. runs the first section if
they match, the else-section if they do not.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@216 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-24 11:56:21 +00:00
gstein 27bcce39a8 Fix the comment parsing: allow more than simply alphanums in the text. Now
it allows everything but the closing bracket.

Add some commentary for the regex since it is central to the operation of
the templating engine.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@215 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-24 10:59:33 +00:00
gstein 4e07d3a2ae remove some unused code (we know it wasn't called cuz "cvsrep" wasn't
defined anywhere)


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@214 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-24 10:14:16 +00:00
gstein b8582e57c7 Begin introduction of templates. For now, just the top portion of the
directory page is generated via template.

* viewcvs.conf.dist, config.py: remove [text] options and defaults; those
    values are now simply text within the template.

* viewcvs.py: load the template, define information to pass to it, and
    invoke it.

* directory.ezt: template for the directory page (and top-level root
    selection and module page).

* ezt.py: templating library from the "edna" project. no changes from the
    HEAD in edna's cvs.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@213 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-23 12:07:32 +00:00
gstein 5684cd97ad yet another idea
(these should migrate to the SF trackers...)


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@212 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-22 23:13:25 +00:00
timcera 56695b3f26 Added CvsGraph support including documentation and installation.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@211 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-22 06:01:44 +00:00
timcera 352e8203cd Added <tt> </tt> to the side-by-side diffs. The <tt></tt> tags garantees a fixed width font.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@210 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-22 05:51:09 +00:00
timcera 350db5250c Added CvsGraph support including documentation and installation.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@209 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-22 05:38:32 +00:00
timcera 880690fc89 Minor format change. The '<p>' was ineffective at this point because
the browser doesn't expect HTML.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@208 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-09-22 01:39:06 +00:00
jpaint a64dc83028 big update of commit database; new CGI, better database cache; no more
html templates; better intigration with viewcvs.cgi's HTML settings


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@207 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-08-21 19:24:40 +00:00
akr d29fac8ba9 Fix typo. (overwright -> overwrite)
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@206 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-06-18 03:12:03 +00:00
akr 6145ac2213 Fix get_logs to return two dictionaries even when there are only directories.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@205 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-06-18 03:05:05 +00:00
akr 32da3ae204 Don't put a title in menu for branch tags if there is no branch.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@204 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-06-04 10:20:14 +00:00
gstein cbadda8611 this actually takes two arguments
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@203 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-06-03 18:43:19 +00:00
gstein 451da3e26d Get dbi.py to work with the latest MySQLdb and mxDateTime.
Submitted by: Gottfried.Ganssauge@HAUFE.DE


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@202 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-06-01 21:57:15 +00:00
akr 5130a7347f Read whole data from `co' to avoid SIGPIPE even if it is not used.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@201 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-31 04:37:09 +00:00
akr 2a83c75317 Don't check Attic which is not exist in tarball generation.
Reported by: Koichiro Ohba <koichiro@ctc-g.co.jp>


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@200 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-31 02:48:42 +00:00
gstein 8d1daf1787 developing 0.8 now...
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@199 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 09:40:04 +00:00
gstein 6c6aee893f reflect release of 0.7
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@198 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 09:39:17 +00:00
gstein 02f2243cc7 *) updated for new CVS site
*) use cvs export and require a tag


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@196 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 09:19:18 +00:00
gstein 8766cf00ca rolling 0.7
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@195 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 09:15:03 +00:00
gstein ba039d5a8f add a reference to Karl's book. delete a broken link.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@194 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 08:54:12 +00:00
gstein 007ad51b2c change web site references from www.lyra.org/viewcvs/ to the new
viewcvs.sourceforge.net/ site.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@193 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 08:49:19 +00:00
gstein c3d12bb0c8 add a persistent URL format for reaching the HEAD revision
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@192 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 08:37:17 +00:00
gstein d0de5e7ad0 add the two new lib/ modules.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@191 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 08:18:28 +00:00
gstein 4a00a0bb4f add an item for the next release
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@190 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-30 08:16:38 +00:00
gstein abb4a468fc The single/double find stuff was stupid. single would always be <= double.
Looking for a double is simply looking at the character following the '@'.
Removing the second find also solved some cache-thrashing that occurred with
big CHUNK_SIZE values. Plus a general speedup. :-)


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@189 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-14 10:49:39 +00:00
gstein cc3807f964 More speedups.
* avoid lstrip() -- it can take a while on large strings
* use loops instead of more complex ops. loops have a higher per-iteration
  cost, but a lower constant time. since N is small, it is a win.
* avoid "re" altogether; use string.digits in class Parser

(rcsparse is now over 10x faster since I started optimizing)


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@188 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-14 08:44:33 +00:00
gstein 3bff6b7378 More performance tweaks.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@187 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-14 05:53:35 +00:00
gstein fc6d80e2fb Speed up the get() method by being smarter about regular expression use,
avoiding slicing of strings, and more fine-tuned parsing.

(some debug stuff, too; this will disappear soon; just checkpointing now)


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@186 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-13 02:52:26 +00:00
gstein 425ae2e8ec Speed up the log extraction by avoiding regular expressions (there are
simple equivalents which are faster).

Add a test function for profiling.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@185 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-13 02:50:24 +00:00
gstein c2a29c83cd save a little test program for comparing rcsparse vs rlog output parsing
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@184 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-13 00:16:42 +00:00
gstein 799816c21f minor nit: fetch_log's last return value is a list, not a dict.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@183 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-13 00:13:12 +00:00
gstein e3dbdb4fcc Update copyright years to include 2001.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@182 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-12 22:51:02 +00:00
gstein c28afba169 removed unneeded #! marker
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@181 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-12 12:33:17 +00:00
gstein d790f07d2c Apply a patch from apache.org: watch out (and recover) for files which have
"illegal" timestamps in them.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@180 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-12 12:26:46 +00:00
gstein edf252fb2f Now, make the appropriate changes to get the split CGI script/library to
actually work: move imports, wrap run_cgi() around the logic in viewcvs.py,
shift around the CONF_PATHNAME stuff, etc.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@179 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-12 12:22:51 +00:00
gstein 6942dd6b4b Slice a big chunk out of viewcvs.cgi and move it to viewcvs.py.
Absolutely no other changes. No additions, no reformat, no nothing...


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@178 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-12 12:05:08 +00:00
gstein a75f32fc3c Older versions of Python do not like lists passed to mktime(). Ensure that
we pass a tuple.

Fixes bug #421282
Submitted by: mjpieters@users.sourceforge.net


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@177 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-05-12 11:42:08 +00:00