Skip to content

Commit

Permalink
Merge branch 'develop' (hotfix release 1.4.9)
Browse files Browse the repository at this point in the history
  • Loading branch information
tchap committed Nov 18, 2014
2 parents 6ef26cf + 2f6eb28 commit e307163
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ of how it works:
Installing salsita-gitflow
==========================

You can install ``salsita gitflow``, using::
You can install ``salsita-gitflow`` using::

pip install salsita-gitflow
pip install --allow-external rbtools --allow-unverified rbtools salsita-gitflow

Or, if you'd like to use ``easy_install`` instead::
To upgrade the package to the current version, just add ``-U`` flag to the command::

easy_install salsita-gitflow
pip install -U --allow-external rbtools --allow-unverified rbtools salsita-gitflow

``salsita-gitflow`` requires Python 2.7.
Please not that ``salsita-gitflow`` requires Python 2.7.

Setting it up
-------------
Expand Down
2 changes: 1 addition & 1 deletion gitflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Distributed under a BSD-like license. For full terms see the file LICENSE.txt
#

VERSION = (1, 4, 8)
VERSION = (1, 4, 9)

__version__ = ".".join(map(str, VERSION[0:3])) + "".join(VERSION[3:])
__author__ = "Ondrej Kupka, Tomas Brambora, Hartmut Goebelm, Vincent Driessen"
Expand Down
1 change: 1 addition & 0 deletions gitflow/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class OperationsError(GitflowError): pass
class PrefixNotUniqueError(OperationsError): pass
class MergeError(OperationsError): pass
class PostReviewError(OperationsError): pass
class SubmitReviewError(OperationsError): pass

class StatusError(GitflowError): pass
class WorkdirIsDirtyError(StatusError): pass
Expand Down
16 changes: 14 additions & 2 deletions gitflow/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from gitflow.core import GitFlow
from gitflow.exceptions import (GitflowError, MultipleReviewRequestsForBranch,
NoSuchBranchError, AncestorNotFound, EmptyDiff,
PostReviewError)
PostReviewError, SubmitReviewError)

class ReviewRequestLimitError(GitflowError):
def __str__(self):
Expand Down Expand Up @@ -178,7 +178,19 @@ def submit(self):
assert self._status
if self._status == 'submitted':
return
self._update(status='submitted')

cmd = ['rbt', 'close', '--close-type', 'submitted', str(self.get_id())]
p = sub.Popen(cmd, stdout=sub.PIPE, stderr=sub.PIPE)
(outdata, errdata) = p.communicate()

if p.returncode != 0:
print('>>>> rbt error output')
print(errdata)
print('<<<< rbt error output')
print('If the error output is not sufficient, execute')
print('\n $ rbt close --debug --close-type submitted {0}\n'.format(self.get_id()))
print('and see what happens.')
raise SubmitReviewError('Failed to submit review request.')

def is_accepted(self):
assert self._rid
Expand Down

0 comments on commit e307163

Please sign in to comment.