project = {}
self._name = project.get('name')
vcs = project.get('vcs')
- if vcs:
- kwargs = {
- 'root': self._root,
- 'author_hacks': self._author_hacks,
- 'year_hacks': self._year_hacks,
- 'aliases': self._aliases,
- }
- if vcs == 'Git':
- self._vcs = _GitBackend(**kwargs)
- elif vcs == 'Mercurial':
- if _MercurialBackend is None:
- raise _mercurial_import_error
- self._vcs = _MercurialBackend(**kwargs)
- else:
- raise NotImplementedError('vcs: {}'.format(vcs))
+ kwargs = {
+ 'root': self._root,
+ 'author_hacks': self._author_hacks,
+ 'year_hacks': self._year_hacks,
+ 'aliases': self._aliases,
+ }
+ if vcs == 'Git':
+ self._vcs = _GitBackend(**kwargs)
+ elif vcs == 'Mercurial':
+ if _MercurialBackend is None:
+ raise _mercurial_import_error
+ self._vcs = _MercurialBackend(**kwargs)
+ else:
+ raise NotImplementedError('vcs: {}'.format(vcs))
def _load_copyright_conf(self, parser):
try: