by Jordan Russell
* lib/compat.py
(cvs_strptime):
stop trying to pass time zone information to strptime. Apparently
the glibc implementation of this function doesn't support it.
Instead just replace the returned is_dst value with 0.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@782 8cb11bc2-c004-0410-86c3-e597b4017df7
currently visible to users
* lib/viewcvs.py
(Request.get_link):
prevent tarball links from having their 'only_with_tag' parameters
overwritten with the current sticky value
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@781 8cb11bc2-c004-0410-86c3-e597b4017df7
in issue #829519 "Viewing removed file causes pyhton exception" by
Hartmut Honisch.
* lib/vclib/bincvs/__init__.py
(BinCVSRepository.openfile):
work around cvsnt's co not producing any output when we request
a dead revision
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@780 8cb11bc2-c004-0410-86c3-e597b4017df7
reported by Hernan Martinez Foffani.
* lib/viewcvs.py
(view_markup):
set default value for "tag" template variable
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@778 8cb11bc2-c004-0410-86c3-e597b4017df7
tinkering in the get_logs() function. I made the incorrect assumption
that rcs files used branch numbers with 0's in them (like 1.2.0.3) when
no changes had yet been made on the branch, and branch numbers without
0's like (1.2.3) for branches that did contain changes. But this appears
to have been based on an optional convention that not all cvs versions
follow. The assumption was only used to avoid some unneccessary iterations
of a while loop and the code is actually a little simpler without it.
* lib/vclib/bincvs/__init__.py
(TagInfo.__init__):
remove _zero_branch member
(TagInfo.matches_rev):
stop using _zero_branch value. the behavior of the this method
is now different than before
(get_logs):
fix to work with new matches_rev definition
* lib/viewcvs.py
(read_log):
simplify an if statement using tag.holds_rev()
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@777 8cb11bc2-c004-0410-86c3-e597b4017df7
Anthon van der Neut for the patch.
* lib/compat.py
(cvs_strptime):
explicitly specify UTC time zone in the strptime function call
that parses timestamps produced by RCS utilities. This causes
the "isdst" field of the returned time tuple to be set to "0"
instead of "-1", meaning "no" instead of "maybe."
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@774 8cb11bc2-c004-0410-86c3-e597b4017df7
(LogEntry.__init__, get_logs): Use string representations of
Subversion revisions here (for consistency with CVS).
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@773 8cb11bc2-c004-0410-86c3-e597b4017df7
* lib/vclib/bincvs/__init__.py:
(parse_log_header):
separate line numbers from file names in rlog error messages, also
try to deal with missing "rlog: " prefixes in rlog error messages
(get_logs):
recover gracefully when rlog has a fatal parsing error and skips
remaining files
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@771 8cb11bc2-c004-0410-86c3-e597b4017df7
Remove HTML-speak throughout. This module is quite useful for much
more than just HTML. Also:
(Template.__init__): Add 'compress_whitespace' parameter (defaulting
to 1) to control whether or not runs of whitespace are compressed.
(Template._parse): Only compress whitespace if the
compress_whitespace variable is non-zero.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@770 8cb11bc2-c004-0410-86c3-e597b4017df7
* viewcvs.conf.dist
(use_php, php_exe_path):
new options for php highlighting
* lib/config.py
(Config.set_defaults):
set defaults for new options
* lib/viewcvs.py
(markup_stream_php):
use new php option, and colorize using php's -s argument instead
of invoking the php interpreter, building a big string and
calling highlight_string()
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@768 8cb11bc2-c004-0410-86c3-e597b4017df7
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
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
* 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
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
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
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
* 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
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
(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
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
* 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
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
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
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
* 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
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
(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
* 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
(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
* 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
(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
(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