Add accessor for Repo._initialized

I will need later on to verify whether a repository has been
initialized. Using the propery _initialized directly cause some linting
errors, so here is a trivial accessor around it.

Change-Id: I1b03031ff31e68115e9bea4e0bbcadf93772a386
This commit is contained in:
Antoine Musso 2014-06-03 14:55:27 +02:00
parent d3fe17fee9
commit a6529c64eb

View File

@ -58,6 +58,9 @@ class Repo(object):
repo.config_writer().write()
self._initialized = True
def isInitialized(self):
return self._initialized
def createRepoObject(self):
try:
self._ensure_cloned()