1
2 """A VCS-interface to Mercurial"""
3
4 from PyFoam.Error import warning,error,notImplemented
5
6 from .GeneralVCSInterface import GeneralVCSInterface
7
8 from os import path as opath
9 import subprocess
10 import os
11
13 """\
14 The interface class to svn
15
16 Only a partial implementation (As much as the BuildHelper needs)"""
17
18 - def __init__(self,
19 path,
20 init=False):
25
33
35
36 return self.getInfo("Repository Root")
37
40
41 - def update(self,
42 timeout=None):
43 ok=self.doInPath(subprocess.call,["svn","update"])
44 return ok==0
45
46
47