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

def obnamlib::repo::Repository::commit_root (   self )
Commit changes to root node, and unlock it.

Definition at line 246 of file repo.py.

                         :
        '''Commit changes to root node, and unlock it.'''
        tracing.trace('committing root')
        self.require_root_lock()
        for client_name in self.added_clients:
            self.clientlist.add_client(client_name)
            self.hooks.call('repository-add-client', 
                            self.clientlist, client_name)
        self.added_clients = []
        for client_name in self.removed_clients:
            client_id = self.clientlist.get_client_id(client_name)
            client_dir = self.client_dir(client_id)
            if client_id is not None and self.fs.exists(client_dir):
                self.fs.rmtree(client_dir)
            self.clientlist.remove_client(client_name)
        self.clientlist.commit()
        self.unlock_root()
        

Generated by  Doxygen 1.6.0   Back to index