Commit dabf0fe7 authored by Christophe Dumez's avatar Christophe Dumez

- fixed info and history for newly added file


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6563 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2b5eaf15
...@@ -36,7 +36,6 @@ from Globals import InitializeClass ...@@ -36,7 +36,6 @@ from Globals import InitializeClass
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.PythonScripts.Utility import allow_class from Products.PythonScripts.Utility import allow_class
from zLOG import LOG, WARNING
from tempfile import mktemp from tempfile import mktemp
try: try:
...@@ -269,6 +268,8 @@ try: ...@@ -269,6 +268,8 @@ try:
try: try:
log_list = self.client.log(path) log_list = self.client.log(path)
except pysvn.ClientError, error: except pysvn.ClientError, error:
if 'path not found' in error.args[0]:
return
excep = self.getException() excep = self.getException()
if excep: if excep:
raise excep raise excep
...@@ -307,6 +308,8 @@ try: ...@@ -307,6 +308,8 @@ try:
try: try:
dict_list = self.client.ls(url_or_path=path, recurse=False) dict_list = self.client.ls(url_or_path=path, recurse=False)
except pysvn.ClientError, error: except pysvn.ClientError, error:
if 'non-existent' in error.args[0]:
return
excep = self.getException() excep = self.getException()
if excep: if excep:
raise excep raise excep
...@@ -335,6 +338,7 @@ try: ...@@ -335,6 +338,7 @@ try:
allow_class(SubversionLoginError) allow_class(SubversionLoginError)
except ImportError: except ImportError:
from zLOG import LOG, WARNING
LOG('SubversionTool', WARNING, LOG('SubversionTool', WARNING,
'could not import pysvn; until pysvn is installed properly, this tool will not work.') 'could not import pysvn; until pysvn is installed properly, this tool will not work.')
def newSubversionClient(container, **kw): def newSubversionClient(container, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment