Skip to content

Commit 7b34881

Browse files
committed
Replace force_success to record_as_success in calls
1 parent e7ce7d7 commit 7b34881

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

readthedocs/vcs_support/backends/bzr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def clone(self):
4545

4646
@property
4747
def tags(self):
48-
retcode, stdout = self.run('bzr', 'tags', force_success=True)[:2]
48+
retcode, stdout = self.run('bzr', 'tags', record_as_success=True)[:2]
4949
# error (or no tags found)
5050
if retcode != 0:
5151
return []

readthedocs/vcs_support/backends/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def clone(self):
8080

8181
@property
8282
def tags(self):
83-
retcode, stdout, _ = self.run('git', 'show-ref', '--tags', force_success=True)
83+
retcode, stdout, _ = self.run('git', 'show-ref', '--tags', record_as_success=True)
8484
# error (or no tags found)
8585
if retcode != 0:
8686
return []
@@ -205,7 +205,7 @@ def find_ref(self, ref):
205205
return ref
206206

207207
def ref_exists(self, ref):
208-
code, _, _ = self.run('git', 'show-ref', ref, force_success=True)
208+
code, _, _ = self.run('git', 'show-ref', ref, record_as_success=True)
209209
return code == 0
210210

211211
@property

readthedocs/vcs_support/backends/hg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def clone(self):
3838

3939
@property
4040
def branches(self):
41-
retcode, stdout = self.run('hg', 'branches', force_success=True)[:2]
41+
retcode, stdout = self.run('hg', 'branches', record_as_success=True)[:2]
4242
# error (or no tags found)
4343
if retcode != 0:
4444
return []
@@ -51,7 +51,7 @@ def parse_branches(self, data):
5151

5252
@property
5353
def tags(self):
54-
retcode, stdout = self.run('hg', 'tags', force_success=True)[:2]
54+
retcode, stdout = self.run('hg', 'tags', record_as_success=True)[:2]
5555
# error (or no tags found)
5656
if retcode != 0:
5757
return []

readthedocs/vcs_support/backends/svn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def update(self):
3434
super(Backend, self).update()
3535
# For some reason `svn status` gives me retcode 0 in non-svn
3636
# directories that's why I use `svn info` here.
37-
retcode = self.run('svn', 'info', force_success=True)[0]
37+
retcode = self.run('svn', 'info', record_as_success=True)[0]
3838
if retcode == 0:
3939
self.up()
4040
else:
@@ -65,7 +65,7 @@ def co(self, identifier=None):
6565
@property
6666
def tags(self):
6767
retcode, stdout = self.run('svn', 'list', '%s/tags/'
68-
% self.base_url, force_success=True)[:2]
68+
% self.base_url, record_as_success=True)[:2]
6969
# error (or no tags found)
7070
if retcode != 0:
7171
return []

0 commit comments

Comments
 (0)