Changeset 79
- Timestamp:
- 2009年03月13日 16时59分39秒 (3 years ago)
- Files:
-
- 1 modified
-
trunk/pysvnmanager/model/repos.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pysvnmanager/model/repos.py
r76 r79 105 105 if os.path.exists(dest): 106 106 assert os.path.basename(dest) == 'hooks' 107 if os.path.isdir(dest): 107 if os.path.islink(dest): 108 os.unlink(dest) 109 else: 108 110 shutil.rmtree(dest) 109 else:110 os.unlink(dest)111 111 elif not os.path.exists(os.path.dirname(dest)): 112 112 raise Exception("Destination repository '%s' not exist!" % os.path.dirname(dest)) … … 136 136 if os.path.exists(dest): 137 137 assert os.path.basename(dest) == 'hooks' 138 if os.path.isdir(dest): 138 if os.path.islink(dest): 139 os.unlink(dest) 140 else: 139 141 shutil.rmtree(dest) 140 else:141 os.unlink(dest)142 142 elif not os.path.exists(os.path.dirname(dest)): 143 143 raise Exception("Destination repository '%s' not exist!" % os.path.dirname(dest))
![(please configure the [header_logo] section in trac.ini)](/trac/pysvnmanager/chrome/common/trac_banner.png)