Changeset 1281 in tailor for vcpx/repository/bzr.py
- Timestamp:
- 09/12/06 23:21:44 (7 years ago)
- Hash name:
- 20060912212144-97f81-128949db7c687813c001a633914bfa21c5455f53
- File:
-
- 1 edited
-
vcpx/repository/bzr.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository/bzr.py
r1260 r1281 304 304 from os.path import join, exists 305 305 306 # bzr does the rename itself as well307 unmoved = False308 oldpath = join(self.repository.basedir, oldname)309 newpath = join(self.repository.basedir, newname)310 if not exists(oldpath):311 try:312 rename(newpath, oldpath)313 except OSError:314 self.log.critical('Cannot rename %r back to %r',315 newpath, oldpath)316 raise317 unmoved = True306 if self.shared_basedirs: 307 # bzr does the rename itself as well 308 unmoved = False 309 oldpath = join(self.repository.basedir, oldname) 310 newpath = join(self.repository.basedir, newname) 311 if not exists(oldpath): 312 try: 313 rename(newpath, oldpath) 314 except OSError: 315 raise ChangesetApplicationFailure( 316 'Cannot rename "%s" back to "%s"' % (newpath, oldpath)) 317 unmoved = True 318 318 319 319 self.log.info('Renaming %r to %r...', oldname, newname) … … 321 321 self._working_tree.rename_one(oldname, newname) 322 322 except: 323 if unmoved:323 if self.shared_basedirs and unmoved: 324 324 rename(oldpath, newpath) 325 325 raise
Note: See TracChangeset
for help on using the changeset viewer.
