Commit Graph

357 Commits (77355718c61db8354e17388fb15de09f6550bdcf)

Author SHA1 Message Date
pefu 18667d725d Open a new browser window to display help pages.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@314 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-13 22:32:29 +00:00
pefu d01364d0bd * Changed path used to serve help pages to take CWD='lib' into account
(required for the templates)
* Implemented two suggestions from Gregs reviewing mails:
  1: The fragment comes after the URL. The above pattern would be something
     like: "href=\"%m%F%7#rev%R\""
  2: request.qmark_query is what you're looking for here
  Thanks, Greg.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@313 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-13 21:12:05 +00:00
timcera c80469ba5e * Moved log to seperate line.
* Changed link text.
* Added 'Diffs' column.
* Removed link from revision number.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@312 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-13 20:59:35 +00:00
pefu c8f661e626 * Fixed the links on the help pages to point to the viewcvs website @ SF.
* Finally removed the duplicated text from directory.ezt and replaced it
  with a 'Help' button at the upper right corner.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@311 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-13 20:54:07 +00:00
pefu 2376c9a7ef A tiny standalone Webserver. Not yet completed but works somehow.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@310 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-13 19:28:51 +00:00
pefu 2be790dcb3 Greg voted against providing local copies of the ViewCVS docs in a
ViewCVS installation.  So back these out from the doc directory again.
Remaining work:  Change the links within the Help pages.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@309 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-13 19:01:01 +00:00
pefu 61c8b3d41f Hendrik Ruijter wrote:
> Note quite there yet.
>
> map_rev_href = "href=\"%m%F%7&rev=%R&content-type=text/vnd.viewcvs-markup\"";
>
> in cvsgraph.conf works. The content-type is *essential*.

I also added comments describing the difference between this and the
previous configuration setting and a comment to describe the new options
passed from ViewCVS to cvsgraph.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@308 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-13 17:08:23 +00:00
pefu 341525d3e4 Bugfix. Hendrik Ruijter wrote:
> When a repository root other than the default
> one is chosen, cvsgraph does not take the
> ?cvsroot=FOO into account. e.g.
>
> <area shape="rect" href="files.default#rev1.1"...
>
> The %c = cvsroot (with trailing '/') in cvsgraph.conf
> is the path, not what viewcvs.cgi wants. Thus,
> it seems that 'request.amp_query' or something similar
> has to be sent as a command-line argument to cvsgraph
> and weeded out as a %0..%9.
>
> e.g.
> map_rev_href
> = "href=\"%m%F#rev%R\"";
> should be
> map_rev_href
> = "href=\"%m%F#rev%R?cvsroot=%6\"";
> where %6 is 'Development' or something similar.

Not exactly but similar.  Please test.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@307 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-13 12:06:46 +00:00
pefu 808cf5265c Added comment advertising Tim Ceras alternative log_table.ezt template
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@306 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-09 22:44:12 +00:00
pefu e824f93fb5 make contributing.html also available locally
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@305 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-09 22:10:44 +00:00
pefu 9dcdc1a660 make request object visible to the directory.ezt template
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@304 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-09 22:08:42 +00:00
timcera 9da51dbec2 Added log_table.ezt to the installation.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@303 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-09 18:42:34 +00:00
timcera a0503097c0 * Developed a solution for the hanging 'Diff' issue. Rather simple solution
really, which means that I probably overlooked something, but it works.
* Rearranged the diff links.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@302 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-09 18:06:11 +00:00
timcera 1e5d9dd974 * Added &nbsp; to the 'Branch' and 'Tag' columns in order to have them
maintain the row color if there aren't any entries.
* Colapsed the 'Branch Path' column into 'Branch'
* Added <br> and &nbps; tags where appropriate to correctly format each entry.
* Diff to branch point works correctly.
* Many misc. changes.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@301 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-09 18:01:49 +00:00
timcera 9322e4e59e * As near as I could determine, the rev2tag.has_key(branch_point)
was never true.  The entry.branch_point was never set.  Now works as
  expected in the log template files.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@300 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-09 17:59:56 +00:00
pefu 657b50834d Ouppss: swapped the logic in my last commit. Fix that.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@299 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-08 22:30:32 +00:00
pefu 09c4ee378a A quick'n'dirty fix for the DST time problem pointed out by
Jon Burt <jonb@inktomi.com> on the viewcvs mailing list today.
Jon posted a patch which I slightly modified (see my reply to
his EMail in the mail archive).


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@298 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-08 22:23:06 +00:00
pefu af4ba05019 Started to "rape" one of Greg's latest pets: 'lib/ezt.py' ;-)
* Added much more "denglish" text to the module doc string!
  Attention: The docstring is probably not yet DOC-SIG (DPS) compatible.
  I lost track following the exciting work done there lately.
  Please correct any bad english grammar.  May be I will be able
  to improve my english from reviewing your diffs <wink>.

* Reworked the initial (one-and-only) test case so far to include
  at least one if block directive and fixed some typos.

* Added more doc strings to functions and methods.

* implemented an include directive.  My implementation might not be very
  elegant.  I wanted to optimize the case, where the include
  directive occurs within a for block, but the name of the include
  file is a string constant.  The include file is readed in only once then.

  To be able do this I wanted to recursivly call the parse_file method
  and append the returned 'program' to the 'program' assembled so far.
  To do this, I renamed 'parse' and 'parse_file' into '_parse' and
  '_parse_file' which return the program sequence instead of assigning
  to instance attribute directly.  To avoid a change in the interface,
  I added two new wrapper methods 'parse' and 'parse_file', which
  simply call these new private methods.

  The other case (include filename given as a value reference) is
  handled in a way similar to what was suggested by Greg: I added a
  _cmd_include() method which will invoke _parse() and _execute()
  each time again, if its execution is encountered.  This however
  will avoid (delay) reading the include file, if the directives
  happens to be in an if or else clause, which is not executed.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@297 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-08 18:55:53 +00:00
pefu 946e480778 Two minor changes in one commit:
1. make 'request' accessable to the template/directory.ezt
    (I want to use [request.script_name] for constructing a help page url)
 2. Fix tarball name generation, if someone requests to download a tarball
    of the whole repository.  Someone suggested the name 'cvs_root' somewhere
    and this guy also suggested to add a new config option to disable tarball
    generation in the root directory alltogether.  I thought about adding
    this config option but decided against it.  We should think of users
    as consenting adults and I wanted to keep configuration reasonable simple.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@296 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-08 17:29:11 +00:00
pefu 227fa91673 Change the default colors used for displaying colored diffs:
The new colors match the traffic light metapher:
1. red (stop) displays removed code no longer in use
2. yellow (attention) displays changed code
3. green (go) displays new added code.
Colors are always a matter of taste.
But I believe these colors make more sense and especially provide
more visual contrast than the previous colors copied from cvsweb.

I also modified some comments.

Please tell me, if you disagree.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@295 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-08 16:41:21 +00:00
pefu c2d403b482 Informational stuff separated out into two help pages.
Might be removed from templates/directory.ezt.
Please have a look at my email to viewcvs-dev.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@294 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-08 08:12:56 +00:00
akr 248c7998c4 *** empty log message ***
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@293 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-08 03:01:14 +00:00
pefu d867b9001f Fix non-matching table row tags in view diff.
The second of these patches was submitted by Christophe Jaillet (tititou)
as SF bug #478323, which should be closed now.  Greg?


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@292 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-05 19:36:02 +00:00
timcera 9639a02d25 * Added log_table.ezt as a draft table format for the log page. Need to add
logic for sorting similar to what is available on directory page. Need more
  testing to make sure format is scalable to complex repositories.
* Fixed small bug in log.ezt.  Stray 'Diff' string in the wrong place.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@291 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-11-03 04:17:17 +00:00
pefu f5fa59bbd3 Improve setup debugging based on an idea of Tim Cera.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@290 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-31 09:15:42 +00:00
pefu 5367f945e7 swapped colors to increase contrast between first line of table and table header.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@289 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-29 07:53:01 +00:00
gstein 9a797cdd53 [ this was missed from a previous commit; checking it in... ]
The missing column is not dependent upon the show_subdir_lastmod flag -- we
don't need to propagate that into the template. If that branch of logic in
the template is reached, then we *know* that show_subdir_lastmod is enabled.
Just hard-code the column (for the revision).

Also a minor optimization: shifted the setting of row.graph_href rather than
setting it for every dir in file_data (note that we skip some of them).


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@288 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-29 04:35:51 +00:00
gstein 2af952b542 The missing column is not dependent upon the show_subdir_lastmod flag -- we
don't need to propagate that into the template. If that branch of logic in
the template is reached, then we *know* that show_subdir_lastmod is enabled.
Just hard-code the column (for the revision).

Also a minor optimization: shifted the setting of row.graph_href rather than
setting it for every dir in file_data (note that we skip some of them).


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@287 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-29 04:34:20 +00:00
pefu 86649f829b Improved error handling: if enscript stops due to wrong arguments
or some other reason, output the actual command before reraising the
Broken Pipe exeception.
I hope this change reduces the chance people will blame problems
with their enscript installation on ViewCVS.
For me this made it much easier to track down a small typo I commited
with revision 1.45 earlier this week:  To be consistent with the
'enscript'-patch, which I submitted to Markku Rossi <mtr@iki.fi> this
spring I replaced 'modula2' with 'modula_2'.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@286 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-28 11:08:28 +00:00
pefu b2b26e4a65 removed some obviously resolved items and added a preface indicating,
that this file will go away and pointing to the SourceForge tracker URL.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@285 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-28 11:07:44 +00:00
pefu ab0ac566fe Started to document this module. Docstring contains a runnable
example using Tim Peters 'doctest' module


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@284 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-27 14:42:43 +00:00
timcera 1c26250da7 Patch addresses 2 problems that occurred with certain combinations of the
use_cvsgraph and show_subdir_lastmod options:

* If use_cvsgraph and show_subdir_lastmod were both on, some subdirectory
  entries would get (graph) links.
* Under various combinations of settings, the directory entries would not
  line up in the proper columns.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@283 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-26 14:45:47 +00:00
pefu c230a38f9d Added a warning about cvsgraph
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@282 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 21:53:28 +00:00
pefu 89a9e91a56 Allow testing help buttons from working copy
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@281 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 20:05:51 +00:00
pefu 773eb89f9b Updated according to my experiences to get the commit database up.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@280 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 20:02:22 +00:00
pefu 7ae3a23f5f New function to serve help pages from the ViewCVS install directory
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@279 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 19:52:34 +00:00
pefu 127d12fd9c Started testing, minor bugfix
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@278 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 17:34:07 +00:00
pefu d206d1d80b Some new files were missing in the installer
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@277 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 16:17:06 +00:00
pefu fa424931e7 Do not chop the documentation from the upcoming release 0.8
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@276 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 14:57:43 +00:00
gstein bff90274b1 First pass at converting the database query stuff over to use templates. The
new template is templates/query.ezt and is the "query" config option in the
[templates] section.

This converts about half the code. The database results come after the
footer, but that will be fixed in a (near) future revision.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@275 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 09:21:47 +00:00
gstein 45d2dec67b Make sure that the graph_href value is always defined. Otherwise, testing
for it could throw an UnknownReference.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@274 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 08:52:16 +00:00
gstein f5c4bab1d0 Add the developers who have made significant contributions to ViewCVS. These
people should be recognized properly. This also implies joint copyright, but
who needs that with the flexibile license we have? :-)

I don't have URLs for home pages for these people, nor do I know if they
want them listed... so just names for now.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@273 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 08:49:48 +00:00
pefu 0b033dc738 Message from Hendrik Ruijter Oct 23, 2001 02:16:47 pm +0200:
I think the lib/config.py must define cvsdb.row_limit.
  Hacked around the viewcvs.html_header problem and got an error
  in lib/cvsdb.py until I added row_limit = 1000 in viewcvs.conf.
  Works now.

I've not tested this!  I'v no MySQL setup.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@272 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 07:26:40 +00:00
pefu 155679c36f A note about security
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@271 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 06:26:45 +00:00
pefu aaa04ac917 Two icons (16x16 and 32x32 pixels), which may be used in directory.ezt
or elsewhere to represent the link to the cvsgraph page


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@270 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 06:16:50 +00:00
pefu 260d00b24b logo should look like a blimb and not like a bomb. :-(
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@269 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-25 06:11:50 +00:00
pefu 91f6f38ae4 * Removed the Graph column from directory display and changed the File
column to colspan=2, if cfg.options.use_cvsgraph is enabled.  This is
  a very minimal change not solving what Greg called
     """the stupid stuff about table headers in view_directory() and
        directory.ezt needs to be cleaned up. Specifically, the whole
	"show_author" crap should just be an aspect of the template, not the
	code."""
  Although I still believe, that the /icons/small/image2.gif would look
  better, I left the text "(graph)" as represenation of the link in there.
* Added a link to the cvsgraph display to the log.ezt template.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@268 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-24 23:26:09 +00:00
pefu 57850b9d84 * To be more consistent, I replaced all occurences of <install-root> in
INSTALL with <VIEWCVS_INSTALL_DIRECTORY>.  I needed to reformat several
  paragraphs in order to keep line length below the 80 column treshold.

* Added a small note about extending enscript syntax highlighting to
  exotic programming languages.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@267 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-24 12:56:10 +00:00
pefu f3538a0136 sorted enscript suffices alphabetically and added Modula-2.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@266 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-24 10:17:48 +00:00
pefu 89282b3125 * ATTENTION: I changed the meaning of the cvsgraph_path config option variable!
This is more consistent with the already existing enscript_path config option.

* Added a new subsection about enscript configuration to the INSTALL file
  similar to the subsection about cvsgraph.

* Updated the notes about cvsgraph to match the new situation. (make install
  in the cvsgraph source directory places itself into /usr/local/bin).

* Added a note about linking cvsgraph on Solaris.

* The value of the config option variable cvsgraph_conf needs to be an
  absolute path.  viewcvs-install now sets this path automatically
  to the viewcvs install directory.

Idea: Should viewcvs-install try to find cvsgraph and enscript binaries
on $PATH and enable the use*-config options automatically?


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@265 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-10-24 09:44:59 +00:00