Commit Graph

1053 Commits (2c0181d6253def8584edbd7cbd04d5c3ec81e011)

Author SHA1 Message Date
rey4 c4f253f187 Check for execute permission on directories in _check_path. This is
another fix suggested by Anthon van der Neut in bug #817757

* lib/vclib/bincvs/__init__.py
  (_check_path):
    check for execute permission on directories when we fall back to
    os.access()


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@767 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-27 19:46:31 +00:00
rey4 6f4440191e Fix bug #817757, "unaccessible directories displayed" submitted by
Anthon van der Neut using the fix that he suggested. This change
also seems to fix another bug, #509961

* lib/vclib/bincvs/__init__.py
  (_check_path):
    fix check of os.access() return value


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@766 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-27 19:30:52 +00:00
rey4 7994db2d37 fix improperly escaped urls on query page, bug #529888 reported
by Franz H�pfinger.

* lib/query.py
  (build_commit)
    add call to urllib.quote


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@765 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-27 17:47:30 +00:00
rey4 055799e9f9 another change to make query page work from source directory
without installation

* lib/cvsdb.py
    fix path to viewcvs.conf


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@764 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-27 17:34:34 +00:00
rey4 e27958e70a make query page work straight from the source directory without
installation

* www/cgi/query.cgi
    fix path to lib directory


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@763 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-27 17:28:30 +00:00
gstein 4c82431592 Simplify some boolean ezt data values.
* lib/viewcvs.py:
  (view_markup): replace ezt.boolean(0) with None
  (view_directory): replace some Python ternary idioms (yuck) with a call
    to ezt.boolean() which does the nifty magic for us anyways.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@762 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-27 06:40:46 +00:00
rey4 c611d05862 * lib/viewcvs.py
(sort_file_data):
    fix sorting by name for files with no revision info


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@761 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-27 04:24:37 +00:00
rey4 e4d2fd765d * lib/viewcvs.py
(Request.get_link):
    remove trailing slashes from revision page links


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@760 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-25 23:48:19 +00:00
rey4 3f2d834184 add forward.gif and back.gif to apache_icons.py. these icons are used
by the new subversion revision page

* tools/bin2inline_py.py:
   added two new icons

* lib/apache_icons.py:
    regenerated


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@759 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-25 23:44:49 +00:00
rey4 52a55617da Rearrange view_directory function, moving logic to the top and template
filling code to the bottom. Add a few comments too.

* lib/viewcvs.py
  (view_directory):
    move some code around


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@758 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-25 22:57:30 +00:00
rey4 8f92ee55ab Merge view_directory_cvs and view_directory_svn functions. Had to add
a lot of kludgy request.roottype == 'cvs' checks, but at least this
way there's a lot less duplicate code.

* viewcvs.py
  (view_directory_cvs, view_directory_svn):
    removed, code moved into view_directory

  (view_directory):
    no longer calls view_directory_cvs and view_directory_svn


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@757 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-25 22:08:47 +00:00
rey4 f1057adb51 * website/upgrading.html
update for new template changes


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@756 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-25 04:40:43 +00:00
rey4 a478890739 Restore "this entry is unreadable" error messages that got mistakenly
suppressed in revision 1.205 of viewcvs.py.

* lib/viewcvs.py:
  (view_directory_cvs):
    stop skipping unreadable rows. also simplify row.name initialization
    by omitting trailing slashes for directory names

  (view_directory_svn):
    omit trailing slashes from directory names

* templates/directory.ezt
* templates/dir_alternate.ezt
    add trailing slashes to directory names


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@755 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-25 04:17:06 +00:00
rey4 a34029940f Move cvs tag sorting code out of view_directory_cvs and into vclib.
* lib/vclib/bincvs/__init__.py
  (_sort_tags):
    new function to alltags dictionary

  (get_logs):
    assign found tags to repos object instead of returning
    alltags dictionary

* lib/vclib/svn/__init__.py
* lib/vclib/svn_ra/__init__.py
  (get_logs):
    stop returning alltags dictionary

* lib/viewcvs.py
  (view_directory_cvs, view_directory_svn):
    updated to work with changed get_logs functions


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@754 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-25 03:33:47 +00:00
rey4 d11e6490ba Simplify some logic in view_directory_cvs. Except for the num_files
count (which was incorrect before), the new code should be equivalent
to the old code.

* lib/viewcvs.py
  (view_directory_cvs):
    simplify some parts, mainly by grouping together assignments of
    row properties


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@753 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-25 02:54:48 +00:00
cmpilato 551a38195c * viewcvs/lib/viewcvs.py
(view_revision_svn): Calculate links to the previous and next
    revisions, as well as a jump-box for whatever revision you so
    desire.

* viewcvs/templates/revision.ezt
  Add UI for navigating to previous and next revisions, for jumping to
  any particular revision you like.

* viewcvs/lib/vclib/svn/__init__.py
  (date_from_rev, fetch_log): Stop recalculating the youngest rev.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@752 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-24 19:27:02 +00:00
rey4 6aab83621c * lib/vclib/bincvs/__init__.py
(BinCVSRepository.openfile):
    fix NameError that occurs when raising an exception


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@751 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-24 19:06:00 +00:00
cmpilato 1f61819995 Committing some highly experimental code for allowing ViewCVS on one
machine to communicate with Subversion repositories via the Subversion
client bindings -- meaning your Subversion repository can live on an
entirely different computer.  Because of the experimental nature, I'm
leaving this feature undocumented (no remarks about using URLs in
viewcvs.conf.dist, basically).

* viewcvs/lib/vclib/svn_ra/__init__.py
  The new module.

* viewcvs/lib/viewcvs.py
  (_re_rewrite_url): Add a bunch of URL schemas that Subversion
    supports to this regexp.
  (Request.run_viewcvs): If a Subversion repository URL is given as
    the root, use the 'svn_ra' module instead of the direct-access
    'svn' one.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@750 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-24 18:31:27 +00:00
cmpilato d1f125f837 Rename some not-meant-for-public-consumption functions.
* viewcvs/lib/vclib/svn/__init__.py
  (_fs_path_join): Was fs_path_join.
  (_log_helper): Was log_helper.
  (_get_last_history_rev): Was get_last_history_rev.
  (_get_history): Was get_history.
  (fetch_log): Update calls to _log_helper and _get_history.
  (get_logs): Update calls to _fs_path_join and _get_last_history_rev.
  (SubversionRepository.openfile): Update call to _get_last_history_rev.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@749 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-24 09:48:32 +00:00
rey4 4b2021fa21 Add optional "list_attic" argument to the bincvs listdir function. Also
fix tarball generation (it was broken by the previous commit)

* lib/vclib/bincvs/__init__.py
  (BinCVSRepository.listdir):
    add ability include Attic in returned listing

  (CVSDirEntry):
    new DirEntry subclass with additional "in_attic" member

* lib/viewcvs.py
  (view_directory_cvs):
    update to take advantage of the new listdir functionality

  (generate_tarball_cvs, generate_tarball_svn):
    update for changed listdir() and get_logs() vclib functions


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@748 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-24 05:13:38 +00:00
rey4 6e00b5d388 Change get_logs functions to add their information directly to
DirEntry objects instead of returning dictionaries of LogEntry
objects. Also make some tweaks to the code that parses rlog output.

* lib/vclib/bincvs/__init__.py
  (parse_log_header):
    stop stripping ",v" suffixes off of filenames, fix error message
    parser to work with windows paths, assign more sensible default
    field values, and change a comment

  (path_ends_in):
    new function

  (get_logs):
    take list of DirEntries as argument and populate it with data
    instead of returning a separate dictionary, also add some
    extra error checking

* lib/vclib/svn/__init__.py
  (get_logs):
    take list of DirEntries as argument just like in bincvs. also
    remove another unneccessary svn_fs_is_file call

* lib/viewcvs.py:
  (sort_file_data):
    change to use the new DirEntry properties

  (view_directory_cvs, view_directory_svn):
    update to work with changed get_logs functions


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@747 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-24 02:52:05 +00:00
rey4 c575c4d821 Factor permissions-checking code out of BinCVSRepository.listdir and into
a new _check_path function. Also take the opportunity to write an alternate
implementation that works correctly on windows.

* lib/vclib/bincvs/__init__.py
  (_check_path):
    added

  (BinCVSRepository.listdir):
    shortened


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@746 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-24 00:03:48 +00:00
rey4 3fc688319f move get_last_modified() into vclib as BinCVSRepository._newest_file()
* lib/vclib/bincvs/__init__.py
  (BinCVSRepository._newest_file):
    new function, cut and paste of get_last_modified

* lib/viewcvs.py
  (get_last_modified):
    removed

  (view_directory_cvs):
    use repos._newest_file function


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@745 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-23 20:36:40 +00:00
uid99421 c0a6d838c6 * templates/revision.ezt:
add the standard page header to the new revision page


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@744 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-23 19:23:26 +00:00
uid99421 2bd228c4ee Moved all string processing of CVS revision numbers into a new class
called TagInfo in an attempt to make tag-matching code more readable.

* lib/vclib/bincvs/__init__.py
  (TagInfo):
    new class

  (get_logs):
    change to use TagInfo

* lib/viewcvs.py
  (find_first_rev):
    new function

  (read_log, view_directory_cvs, view_log_cvs):
    change to use Taginfo and find_first_rev

  (CVSBranch):
    died and reincarnated as TagInfo


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@743 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-23 18:59:06 +00:00
cmpilato e7be5b1f0a * lib/vclib/svn/__init__.py
(get_revision_info): Update call to RevisionChangeCollector().


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@742 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-22 19:46:28 +00:00
cmpilato a33f547c1e * viewcvs/lib/viewcvs.py
(view_revision_svn): Oops.  Fix the prev and diff_href calculations.

* viewcvs/templates/revision.ezt
  Fix some logic to always populate the right number of cells.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@741 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-22 18:35:56 +00:00
cmpilato 9d5d4170f9 More work on the cool new revision view.
* viewcvs/lib/vclib/svn/__init__.py
  (LogEntry.__init__): Remove 'other_paths' parameter and support.
  (ChangedPathEntry): Remove.
  (ChangedPath, get_revision_info): New.
  (log_helper): Don't do changed-path or action stuffs.  Update call
    to LogEntry().
  (get_logs): Update call to LogEntry().

* viewcvs/lib/viewcvs.py
  (view_log_svn): Remove support for 'other_paths' support.
  (view_revision): Move svn-specific stuff to new view_revision_svn()
  (view_revision_svn): New.

* viewcvs/templates/revision.ezt
  Make this template actually do something useful.

* viewcvs/templates/log.ezt
* viewcvs/templates/log_table.ezt
  Remove display of "other_paths" from Subversion logs.  Make revision
  numbers into links to the revision view.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@740 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-22 18:23:01 +00:00
rey4 1e0d4e3cff combine get_logs() and process_rlog_output() functions, also trim
trailing whitespace

* lib/vclib/bincvs/__init__.py
  (process_rlog_output, get_logs):
    removed process_rlog_output, moved code into get_logs


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@739 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-22 03:40:07 +00:00
rey4 069265c023 * lib/viewcvs.py
(view_directory, view_directory_cvs, view_directory_svn):
    move some common code in view_directory_cvs and
    view_directory_svn into view_directory


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@738 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-21 21:17:29 +00:00
cmpilato 45629a7dde Begin implementing the new 'revision' view.
* viewcvs/lib/viewcvs.py
  (Request.get_link): Add code to generate the new revision info links.
  (view_revision): New.
  (_views): Alphabetically sort the views here, and add the new 'rev' view.

* viewcvs/viewcvs.conf.dist
  (templates.revision): New.

* viewcvs/templates/revision.ezt
  New.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@737 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-21 20:04:30 +00:00
rey4 c1785db585 Remove dead code from vclib.
* lib/vclib/__init__.py
  (Repository.getitem, Repository.getfiles, Repository.getsubdirs,
   Revision, Repository._getvf_files, Repository._getvf_subdirs,
   Versfile, Versdir, Versitem, Repository._getvf_info,
   Repository._getvf_tree, Repository._getvf_properties,
   Repository._getvf_cofile):
    removed

* lib/vclib/svn/__init__.py
  (SubversionRepository.getitem, SubversionRepository._getvf_files,
   SubversionRepository._getvf_subdirs,
   SubversionRepository._getvf_info,
   SubversionRepository._getvf_tree,
   SubversionRepository._getvf_properties,
   SubversionRepository._getvf_cofile):
    removed

* lib/vclib/bincvs/__init__.py
  (BinCVSRepository.getitem, BinCVSRepository._getvf_files,
   BinCVSRepository._getvf_subdirs,
   BinCVSRepository._getvf_info,
   BinCVSRepository._getvf_tree,
   BinCVSRepository._getvf_properties,
   BinCVSRepository._getvf_cofile):
    removed


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@736 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-21 19:54:27 +00:00
cmpilato e367c87dfe * viewcvs/lib/vclib/bincvs/__init__.py
(get_logs): Copy the input 'files' array so we aren't deleting data
    from the passed-in thing.  Caller might want to keep using that
    stuff, ya know?


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@735 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-21 18:58:32 +00:00
rey4 ff2cf94151 * lib/vclib/svn/__init__.py
(SubversionRepository.listdir)
    implement using fs library functions instead of the vclib
    getitem() interface


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@734 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-21 18:54:23 +00:00
rey4 111a9b823b * lib/viewcvs.py
(generate_tarball_svn):
    use repos.listdir() interface instead of repos.getitem() interface


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@733 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-21 18:28:55 +00:00
rey4 1dc358fc1d Move get_file_data and get_file_data_svn functions into vclib.
* lib/viewcvs.py
  (DirEntry, get_file_data_svn, get_file_data):
    removed

  (view_directory_cvs, view_directory_svn, generate_tarball_cvs):
    call repos.listdir instead of get_file_data

* lib/vclib/bincvs/__init__.py
  (BinCVSRepository.listdir):
    added, cut and paste of get_file_data

* lib/vclib/svn/__init__.py
  (SubversionRepository.listdir)
    added, cut and paste of get_file_data_svn

* lib/vclib/__init__.py
  (DirEntry)
    added, cut and paste

  (Repository.listdir)
    added abstract member function


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@732 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-21 14:35:47 +00:00
rey4 f2cadab08a Store directory listing entries in objects instead of tuples
* lib/viewcvs.py
  (_UNREADABLE_MARKER):
    removed

  (DirEntry):
    new class to replace directory entry tuples

  (get_file_data_svn, get_file_data):
    take repository object and directory path as arguments instead of
    taking the entire Request object. And return DirEntry instances
    instead of tuples

  (get_file_tests):
    removed, code moved into get_file_data

  (get_last_modified, sort_file_data, view_directory_cvs,
   view_directory_svn, search_files, generate_tarball_cvs):
    work with DirEntry instances instead of tuples

  (search_files):
    change the way this is called and remove cvs-specific code so
    subversion listings could potentially have regular expression
    searching

  (download_tarball, generate_tarball_cvs, generate_tarball_svn):
    change the way two recursive parameters are used to make it
    easier to call vclib-style functions


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@731 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-21 05:42:12 +00:00
rey4 cfbf622b27 Move the process_checkout function into vclib.
* lib/viewcvs.py
  (process_checkout):
    removed, functionality moved into vclib

  (view_markup, view_checkout, search_files):
    call vclib.Repository.openfile instead of process_checkout

  (Request.run_viewcvs):
    pass rcs path option values to CVS repository constructor

* lib/vclib/__init__.py
  (Repository.openfile):
    new abstract function

* lib/vclib/bincvs/__init__.py
  (BinCVSRepository.openfile):
    added

  (BinCVSRepository.__init__):
    added rcs_paths member to hold rcs config values

* lib/vclib/svn/__init__.py
  (SubversionRepository.openfile):
    added

  (get_file_contents):
    removed


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@730 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-20 03:53:23 +00:00
rey4 131904872c Stop looking up "action" values for subversion log entries. C. Mike
pointed out that will ultimately allow us to get rid of an inefficient
call to svn_fs_paths_changed().

* lib/vclib/svn/__init__.py
  (LogEntry.__init__, log_helper, get_logs):
    no longer set LogEntry.action member

* templates/log.ezt
* templates/log_table.ezt
    stop trying to read LogEntry.action member


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@729 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-17 17:56:44 +00:00
cmpilato 4e5303978a Expose the actions for "other changed paths".
* viewcvs/lib/vclib/svn/__init__.py
  (ChangedPathEntry.__init__): Add 'action' parameter.
  (_unparse_action): New helper (with code previously in log_helper()).
  (log_helper): Now call _unparse_action() to get the action string
    for the path.  But now also call it for the other paths, passing
    the result to the updated ChangedPathEntry.__init__() function.

* viewcvs/templates/log.ezt
* viewcvs/templates/log_table.ezt
  Now show the type of change that happened for "the other paths", and
  don't make paths that were deleted into hyperlinks.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@728 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-16 14:41:10 +00:00
cmpilato 751b031192 Some pool usage fixes suggested by Greg Stein.
* viewcvs/lib/vclib/svn/__init__.py
  (get_last_history_rev): Add 'pool' argument; use it instead of the
    repository object's pool.
  (get_logs): Make this sucker us an iteration subpool.  Update call
    to get_last_history_rev().


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@727 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-16 06:34:52 +00:00
rey4 c7c9807517 Removed show_changed_paths option. It was originally added as a way to
to disable a buggy and inefficient subversion feature. But it's no
longer neccessary with C. Mike's recent improvements to the subversion
module.

* viewcvs.conf.dist
  (show_changed_paths):
    removed option

* lib/config.py
  (Config.set_defaults)
    removed default assignment

* lib/viewcvs.py
  (run_viewcvs):
    stop passing option value to repository object

* lib/vclib/svn/__init__.py
  (log_helper, fetch_log):
    stop passing option value to log_helper function


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@726 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-15 20:33:04 +00:00
rey4 9970242b67 fix some links on log pages
* lib/vclib/svn/__init__.py
  (_trim_path):
    new function to take leading slashes off paths

  (log_helper):
    remove leading slashes from paths that get used by templates


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@725 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-15 20:12:29 +00:00
cmpilato 603181493b * viewcvs/lib/viewcvs.py
(view_markup): Ensure that the 'prev' data member always exists.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@724 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-15 19:29:40 +00:00
rey4 c1f7b71c81 get standalone server to work from development tree
* standalone.py
  (global code):
    remove os.chdir() call and set viewcvs.g_install_dir variable so
    the templates and configuration file can be found


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@723 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-15 17:39:43 +00:00
rey4 e159806814 * lib/viewcvs.py
(handle_config):
    when viewcvs is run without being installed first, look for a
    viewcvs.conf file in the root of tree instead of in the current
    directory


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@722 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-15 17:27:17 +00:00
cmpilato c8bc2d4832 * viewcvs/lib/vclib/svn/__init__.py
(log_helper): Stop skipping over revisions in which the target path
    didn't actually change.  If we decide to re-add this feature, we
    need to do it in viewcvs.py itself (because other code, like
    view_markup(), is depending on getting real values for all
    relevant revisions.
  (get_last_history_rev): New.
  (get_logs): Move this function down in the file, and now call
    get_last_history_rev() instead of fs.node_created_rev().


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@721 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-15 17:24:40 +00:00
cmpilato 9a8d5d115b Whip 'select for diffs', 'diff to previous', and 'diff to selected'
into shape for Subversion.

* viewcvs/lib/viewcvs.py
  (view_log): Grab the path of a version selected for diffs from the
    query data, and stash it in the data dictionary.

* viewcvs/templates/log_table.ezt
* viewcvs/templates/log.ezt
  Fix the 'diff to previous', 'diff to selected', and 'select for
  diff' links for Subversion.  Also, don't display the various "branch
  point" and "next main" diff links for Subversion.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@720 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-15 16:42:02 +00:00
cmpilato 1ab8cfbd92 Purge semi-colons from the ends of statements (in one case, moving it into a
string constant as an HTML entity terminator.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@719 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-14 15:53:42 +00:00
cmpilato e83cf53244 * viewcvs/lib/viewcvs.py
(read_log): Word-capitalize the "Tag Not Found" status line.
  (view_diff): Add 400 status to the exceptions.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@718 8cb11bc2-c004-0410-86c3-e597b4017df7
2003-10-14 15:35:23 +00:00