~hdlorean-watcher/hdlorean/watcher

« back to all changes in this revision

Viewing changes to src/hdloreand/snapshotManager/XDelta3Wrapper.py

  • Committer: Mario Arnaldos
  • Date: 2008-03-12 22:46:11 UTC
  • mfrom: (16.10.31 unstable)
  • Revision ID: ender.dragon@gmail.com-20080312224611-gwn0ab5bnljv606t
trying to recover

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
                                        # If someone is finded...
320
320
                                        if not boolIntegral and lastIntegral != [()] and lastIntegral != []:
321
321
                                                # Fix operation
322
 
                                                if operation != 'MOVE':
323
 
                                                        operation = 'MODIFY'
 
322
                                                #if operation != 'MOVE':
 
323
                                                #       operation = 'MODIFY'
324
324
                                                        
325
325
                                                # Sets backup mode to DIFF
326
326
                                                backupMode = 'DIFF'
358
358
                                        # If there isn't last integral, force integral...
359
359
                                        else:
360
360
                                                # Fix operation
361
 
                                                if not boolIntegral:
362
 
                                                        operation = 'CREATE'
 
361
                                                #if not boolIntegral:
 
362
                                                #       operation = 'CREATE'
363
363
                                                        
364
364
                                                boolIntegral = True
365
365
                                                        
437
437
                        candidatePath = entry[0]
438
438
                        entryPerms = entry[1]
439
439
                        entryType = entry[2]
 
440
                        self.__log.debug(candidatePath)
440
441
                        
441
442
                        # Check recoverFileList
442
443
                        newRecoverFileList = None
723
724
                elif len(originalPathList) == 1:
724
725
                        commonPath = os.path.split(originalPathList[0])[0]
725
726
                else:
726
 
                        commonPath = os.path.commonprefix(originalPathList)
727
 
                self.__log.debug(os.path.commonprefix(['/a/c','/a/d'])[:-1])
 
727
                        commonPath = os.path.commonprefix(originalPathList)[:-1]
 
728
                self.__log.debug(commonPath)
728
729
                snapPath = os.path.join(snapPath, commonPath[1:])
729
730
                
730
731
                # Build up recover path