Skip to content

Commit ed4a714

Browse files
committed
Use quiet mode to retrieve branches from mercurial
Without the quiet mode, the current revision of the branch is also displayed which breaks parse_branches.
1 parent 4acca75 commit ed4a714

File tree

1 file changed

+2
-1
lines changed
  • readthedocs/vcs_support/backends

1 file changed

+2
-1
lines changed

readthedocs/vcs_support/backends/hg.py

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

3939
@property
4040
def branches(self):
41-
retcode, stdout = self.run('hg', 'branches', record_as_success=True)[:2]
41+
retcode, stdout = self.run(
42+
'hg', 'branches', '--quiet', record_as_success=True)[:2]
4243
# error (or no tags found)
4344
if retcode != 0:
4445
return []

0 commit comments

Comments
 (0)