import libbe
import libbe.storage.base
import libbe.util.encoding
+from libbe.storage.base import EmptyCommit, InvalidRevision
from libbe.util.utility import Dir, search_parent_directories
from libbe.util.subproc import CommandError, invoke
from libbe.util.plugin import import_by_name
return self._vcs_revision_id(-1)
def _vcs_revision_id(self, index, style='id'):
+ try:
+ index = str(int(index))
+ except ValueError:
+ return None
args = ['identify', '--rev', str(int(index)), '--%s' % style]
kwargs = {'expect': (0,255)}
status,output,error = self._u_invoke_client(*args, **kwargs)