INNER CODE UNIT · Python

GetSvnInfo

sweeneychris/TheiaSfM · libraries/gtest/scripts/common.py:55

def GetSvnInfo():
  """Returns the project name and the current SVN workspace's root path."""

  for line in GetCommandOutput('svn info .'):
    m = _SVN_INFO_URL_RE.match(line)
    if m:
      project = m.group(1)  # googletest or googlemock
      rel_path = m.group(2)
      root = os.path.realpath(rel_path.count('/') * '../')
      return project, root

  return None, None


def GetSvnTrunk():
  """Returns the current SVN workspace's trunk root path."""

  _, root = GetSvnInfo()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…