Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bug 687179 - tagging should use one tagging operation per tagged revi…
Browse files Browse the repository at this point in the history
…sion. r=aki
  • Loading branch information
Rail Aliiev committed Feb 15, 2012
1 parent 4cb8ffa commit 99c3ce1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/release/tag-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def tagRepo(config, repo, reponame, revision, tags, bumpFiles, relbranch,

def bump_and_tag(repo, attempt, config, relbranch, revision, tags,
defaultBranch):
relbranchChangesets = len(tags)
# set relbranchChangesets=1 because tag() generates exactly 1 commit
relbranchChangesets = 1
defaultBranchChangesets = 0

if relbranch in get_branches(reponame):
Expand Down Expand Up @@ -132,7 +133,8 @@ def tagOtherRepo(config, repo, reponame, revision, pushAttempts):
retry(mercurial, args=(remote, reponame))

def tagRepo(repo, attempt, config, revision, tags):
totalChangesets = len(tags)
# set totalChangesets=1 because tag() generates exactly 1 commit
totalChangesets = 1
tag(repo, revision, tags, config['hgUsername'])
outgoingRevs = retry(out, kwargs=dict(src=reponame, remote=remote,
ssh_username=config['hgUsername'],
Expand Down

0 comments on commit 99c3ce1

Please sign in to comment.