def _get_current_commit(self):
    woql_query = WOQLQuery().using('_commits').triple('v:branch', 'name', WOQLQuery().string(self.branch)).triple('v:branch', 'head', 'v:commit').triple('v:commit', 'identifier', 'v:cid')
    result = self.query(woql_query)
    if (not result):
        return None
    current_commit = result.get('bindings')[0].get('cid').get('@value')
    return current_commit
def _get_current_commit(self):
    woql_query = WOQLQuery().using('_commits').triple('v:branch', 'name', WOQLQuery().string(self.branch)).triple('v:branch', 'head', 'v:commit').triple('v:commit', 'identifier', 'v:cid')
    result = self.query(woql_query)
    if (not result):
        return None
    current_commit = result.get('bindings')[0].get('cid').get('@value')
    return current_commit