Lose some duplicated code.
* lib/vclib/svn_ra/__init__.py (_datestr_to_date): Remove, and pull in the one from vclib.svn instead. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1053 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
949c6a196d
commit
2ab8c50dd7
|
@ -25,7 +25,7 @@ import re
|
|||
import tempfile
|
||||
import popen2
|
||||
|
||||
from vclib.svn import Revision
|
||||
from vclib.svn import Revision, _datestr_to_date
|
||||
|
||||
# Subversion swig libs
|
||||
from svn import core, delta, client, wc, ra
|
||||
|
@ -125,12 +125,6 @@ def get_revision_info(svnrepos):
|
|||
return _datestr_to_date(date, svnrepos.pool), author, log, changes
|
||||
|
||||
|
||||
def _datestr_to_date(datestr, pool):
|
||||
if datestr is None:
|
||||
return None
|
||||
return core.svn_time_from_cstring(datestr, pool) / 1000000
|
||||
|
||||
|
||||
def _compare_paths(path1, path2):
|
||||
path1_len = len (path1);
|
||||
path2_len = len (path2);
|
||||
|
|
Loading…
Reference in New Issue