def create(self):
        """
        Create a source code repository
        """
        import subprocess
        if self.exists():
            return
        if not os.path.exists(self.config['public_path']):
            os.makedirs(self.config['public_path'])
        if not os.path.exists(self.config['private_path']):
            os.makedirs(self.config['private_path'])
        
        cmd = ["svnadmin","create", self.path]
        if self.config['config_dir']:
            cmd.extend(["--config-dir", self.config['config_dir']])
        subprocess.check_call(cmd)
        
        if self.template:
            template = os.path.join(os.path.dirname(__file__),'repo-templates',
                                        self.template)
            url = 'file://%s'%self.path
            cmd = ['svn', 'import', template, url, "-m", "\"Initial import.\""]
            if self.config['config_dir']:
                cmd.extend(["--config-dir", self.config['config_dir']])
            subprocess.check_call(cmd)
dataset/ETHPy150Open washingtontimes/django-repositories/repositories/vcs.old.py/SubversionRepository.create/original