Permalink
Browse files

Bug 687179 - tagging should use one tagging operation per tagged revi…

…sion. r=aki
  • Loading branch information...
1 parent 4cb8ffa commit 99c3ce13399a9e8c31f288dc7b62f55b14c0f0ff @rail rail committed Feb 15, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 scripts/release/tag-release.py
@@ -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):
@@ -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'],

0 comments on commit 99c3ce1

Please sign in to comment.