##// END OF EJS Templates
svn: expose run_svn_command
marcink -
r3574:3cb68c9b default
parent child Browse files
Show More
@@ -98,6 +98,23 b' class SubversionRepository(base.BaseRepo'
98 head = self._remote.lookup(None)
98 head = self._remote.lookup(None)
99 return [str(r) for r in xrange(1, head + 1)]
99 return [str(r) for r in xrange(1, head + 1)]
100
100
101 def run_svn_command(self, cmd, **opts):
102 """
103 Runs given ``cmd`` as svn command and returns tuple
104 (stdout, stderr).
105
106 :param cmd: full svn command to be executed
107 :param opts: env options to pass into Subprocess command
108 """
109 if not isinstance(cmd, list):
110 raise ValueError('cmd must be a list, got %s instead' % type(cmd))
111
112 skip_stderr_log = opts.pop('skip_stderr_log', False)
113 out, err = self._remote.run_svn_command(cmd, **opts)
114 if err and not skip_stderr_log:
115 log.debug('Stderr output of svn command "%s":\n%s', cmd, err)
116 return out, err
117
101 @LazyProperty
118 @LazyProperty
102 def branches(self):
119 def branches(self):
103 return self._tags_or_branches('vcs_svn_branch')
120 return self._tags_or_branches('vcs_svn_branch')
General Comments 0
You need to be logged in to leave comments. Login now