Logo Search packages:      
Sourcecode: obnam version File versions  Download package

def obnamlib::repo::Repository::unlock_client (   self )
Unlock currently locked client, without committing changes.

Definition at line 366 of file repo.py.

                           :
        '''Unlock currently locked client, without committing changes.'''
        tracing.trace('unlocking client')
        self.require_client_lock()
        self.new_generation = None
        for genid in self.added_generations:
            self._really_remove_generation(genid)
        self.client = None # FIXME: This should remove uncommitted data.
        self.added_generations = []
        self.removed_generations = []
        self.fs.remove(self.client_lockfile)
        self.client_lockfile = None
        self.got_client_lock = False
        self.current_client = None
        self.current_client_id = None


Generated by  Doxygen 1.6.0   Back to index