Author: cmpilato
Date: 2007-04-17 14:07:33-0700
New Revision: 1616
Modified:
trunk/lib/blame.py
trunk/lib/popen.py
trunk/lib/vclib/ccvs/blame.py
trunk/lib/vclib/ccvs/rcsparse/common.py
trunk/lib/vclib/ccvs/rcsparse/default.py
trunk/lib/vclib/ccvs/rcsparse/texttools.py
trunk/lib/viewvc.py
Log:
* lib/viewvc.py
* lib/vclib/ccvs/rcsparse/common.py
* lib/vclib/ccvs/rcsparse/default.py
* lib/vclib/ccvs/rcsparse/texttools.py
* lib/vclib/ccvs/blame.py
* lib/blame.py
* lib/popen.py
Replace stray tabs with spaces. (Hopefully) no logic changes.
Modified: trunk/lib/blame.py
Url:
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/blame.py?view=diff&rev=1616&p1=trunk/lib/blame.py&p2=trunk/lib/blame.py&r1=1615&r2=1616
==============================================================================
--- trunk/lib/blame.py (original)
+++ trunk/lib/blame.py 2007-04-17 14:07:33-0700
@@ -161,9 +161,9 @@
# Close the highlighted section
#if (defined $mark_cmd and mark_cmd != 'begin'):
- # chop($output)
- # output = output + endOfRow + (startOfRow % row_color)
- # inMark = 0
+ # chop($output)
+ # output = output + endOfRow + (startOfRow % row_color)
+ # inMark = 0
print output
print endOfRow + '</table>'
Modified: trunk/lib/popen.py
Url:
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/popen.py?view=diff&rev=1616&p1=trunk/lib/popen.py&p2=trunk/lib/popen.py&r1=1615&r2=1616
==============================================================================
--- trunk/lib/popen.py (original)
+++ trunk/lib/popen.py 2007-04-17 14:07:33-0700
@@ -364,12 +364,12 @@
else:
if self.thread:
self.thread.join()
- if type(self.child_pid) == type([]):
+ if type(self.child_pid) == type([]):
for pid in self.child_pid:
exit = os.waitpid(pid, 0)[1]
return exit
- else:
- return os.waitpid(self.child_pid, 0)[1]
+ else:
+ return os.waitpid(self.child_pid, 0)[1]
return None
def __getattr__(self, name):
Modified: trunk/lib/vclib/ccvs/blame.py
Url:
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/vclib/ccvs/blame.py?view=diff&rev=1616&p1=trunk/lib/vclib/ccvs/blame.py&p2=trunk/lib/vclib/ccvs/blame.py&r1=1615&r2=1616
==============================================================================
--- trunk/lib/vclib/ccvs/blame.py (original)
+++ trunk/lib/vclib/ccvs/blame.py 2007-04-17 14:07:33-0700
@@ -347,7 +347,7 @@
is_trunk_revision = self.trunk_rev.match(revision) is not None
if is_trunk_revision:
- diffs = self.deltatext_split(last_revision)
+ diffs = self.deltatext_split(last_revision)
# Revisions on the trunk specify deltas that transform a
# revision into an earlier revision, so invert the translation
@@ -380,7 +380,7 @@
# the trunk. They specify deltas that transform a revision
# into a later revision.
adjust = 0
- diffs = self.deltatext_split(revision)
+ diffs = self.deltatext_split(revision)
for command in diffs:
if skip > 0:
skip = skip - 1
Modified: trunk/lib/vclib/ccvs/rcsparse/common.py
Url:
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/vclib/ccvs/rcsparse/common.py?view=diff&rev=1616&p1=trunk/lib/vclib/ccvs/rcsparse/common.py&p2=trunk/lib/vclib/ccvs/rcsparse/common.py&r1=1615&r2=1616
==============================================================================
--- trunk/lib/vclib/ccvs/rcsparse/common.py (original)
+++ trunk/lib/vclib/ccvs/rcsparse/common.py 2007-04-17 14:07:33-0700
@@ -74,7 +74,7 @@
#
class _Parser:
- stream_class = None # subclasses need to define this
+ stream_class = None # subclasses need to define this
def parse_rcs_admin(self):
while 1:
@@ -194,7 +194,7 @@
if token == ';':
break
author = author + token + ' '
- author = author[:-1] # toss the trailing space
+ author = author[:-1] # toss the trailing space
# Parse state
self.ts.match('state')
@@ -204,7 +204,7 @@
if token == ';':
break
state = state + token + ' '
- state = state[:-1] # toss the trailing space
+ state = state[:-1] # toss the trailing space
# Parse branches
self.ts.match('branches')
Modified: trunk/lib/vclib/ccvs/rcsparse/default.py
Url:
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/vclib/ccvs/rcsparse/default.py?view=diff&rev=1616&p1=trunk/lib/vclib/ccvs/rcsparse/default.py&p2=trunk/lib/vclib/ccvs/rcsparse/default.py&r1=1615&r2=1616
==============================================================================
--- trunk/lib/vclib/ccvs/rcsparse/default.py (original)
+++ trunk/lib/vclib/ccvs/rcsparse/default.py 2007-04-17 14:07:33-0700
@@ -26,7 +26,7 @@
# note: we use a multiple of a standard block size
CHUNK_SIZE = 192 * 512 # about 100k
-# CHUNK_SIZE = 5 # for debugging, make the function grind...
+# CHUNK_SIZE = 5 # for debugging, make the function grind...
def __init__(self, file):
self.rcsfile = file
@@ -51,7 +51,7 @@
buf = self.rcsfile.read(self.CHUNK_SIZE)
if buf == '':
# signal EOF by returning None as the token
- del self.buf # so we fail if get() is called again
+ del self.buf # so we fail if get() is called again
return None
idx = 0
Modified: trunk/lib/vclib/ccvs/rcsparse/texttools.py
Url:
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/vclib/ccvs/rcsparse/texttools.py?view=diff&rev=1616&p1=trunk/lib/vclib/ccvs/rcsparse/texttools.py&p2=trunk/lib/vclib/ccvs/rcsparse/texttools.py&r1=1615&r2=1616
==============================================================================
--- trunk/lib/vclib/ccvs/rcsparse/texttools.py (original)
+++ trunk/lib/vclib/ccvs/rcsparse/texttools.py 2007-04-17 14:07:33-0700
@@ -25,7 +25,7 @@
_idchar_list = map(chr, range(33, 127)) + map(chr, range(160, 256))
_idchar_list.remove('$')
_idchar_list.remove(',')
-#_idchar_list.remove('.') leave as part of 'num' symbol
+#_idchar_list.remove('.') # leave as part of 'num' symbol
_idchar_list.remove(':')
_idchar_list.remove(';')
_idchar_list.remove('@')
@@ -41,10 +41,10 @@
_T_STRING_SPAN = 60
_T_STRING_END = 70
-_E_COMPLETE = 100 # ended on a complete token
-_E_TOKEN = 110 # ended mid-token
-_E_STRING_SPAN = 130 # ended within a string
-_E_STRING_END = 140 # ended with string-end ('@') (could be mid-@@)
+_E_COMPLETE = 100 # ended on a complete token
+_E_TOKEN = 110 # ended mid-token
+_E_STRING_SPAN = 130 # ended within a string
+_E_STRING_END = 140 # ended with string-end ('@') (could be mid-@@)
_SUCCESS = +100
@@ -65,7 +65,7 @@
# note: we use a multiple of a standard block size
CHUNK_SIZE = 192 * 512 # about 100k
-# CHUNK_SIZE = 5 # for debugging, make the function grind...
+# CHUNK_SIZE = 5 # for debugging, make the function grind...
def __init__(self, file):
self.rcsfile = file
Modified: trunk/lib/viewvc.py
Url:
http://viewvc.tigris.org/source/browse/viewvc/trunk/lib/viewvc.py?view=diff&rev=1616&p1=trunk/lib/viewvc.py&p2=trunk/lib/viewvc.py&r1=1615&r2=1616
==============================================================================
--- trunk/lib/viewvc.py (original)
+++ trunk/lib/viewvc.py 2007-04-17 14:07:33-0700
@@ -194,7 +194,7 @@
# handle tarball magic suffixes
if self.view_func is download_tarball:
if (self.query_dict.get('parent')):
- del path_parts[-1]
+ del path_parts[-1]
elif path_parts[-1][-7:] == ".tar.gz":
path_parts[-1] = path_parts[-1][:-7]
@@ -293,7 +293,7 @@
if self.pathtype is None:
# path doesn't exist, see if it could be an old-style ViewVC URL
- # with a fake suffix
+ # with a fake suffix
result = _strip_suffix('.diff', path_parts, pathrev, vclib.FILE, \
self.repos, view_diff) or \
_strip_suffix('.tar.gz', path_parts, pathrev, vclib.DIR, \
@@ -312,7 +312,7 @@
if result:
self.path_parts, self.pathtype, self.view_func = result
self.where = _path_join(self.path_parts)
- needs_redirect = 1
+ needs_redirect = 1
else:
raise debug.ViewVCException('%s: unknown location'
% self.where, '404 Not Found')
@@ -344,7 +344,7 @@
self.view_func = view_roots
elif self.pathtype == vclib.DIR:
# ViewCVS 0.9.2 used to put ?tarball=1 at the end of tarball urls
- if self.query_dict.has_key('tarball'):
+ if self.query_dict.has_key('tarball'):
self.view_func = download_tarball
else:
self.view_func = view_directory
@@ -503,7 +503,7 @@
if view_func is download_tarball:
if not where and not cfg.options.root_as_url_component:
url = url + '/' + rootname + '-root'
- params['parent'] = '1'
+ params['parent'] = '1'
url = url + '.tar.gz'
# add trailing slash for a directory
@@ -2228,7 +2228,7 @@
diff_url = request.get_url(view_func=view_diff,
params={'r1': None, 'r2': None},
- escape=1, partial=1)
+ escape=1, partial=1)
include_url = request.get_url(view_func=view_log, where='/WHERE/',
pathtype=vclib.FILE, params={}, escape=1)
|