Merge lp:~abentley/launchpad/version-revno into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Aaron Bentley on 2010-06-16 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 11023 | ||||
| Proposed branch: | lp:~abentley/launchpad/version-revno | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
101 lines (+11/-11) 3 files modified
lib/lp/code/browser/tests/test_sourcepackagerecipe.py (+8/-8) lib/lp/code/interfaces/sourcepackagerecipe.py (+1/-1) lib/lp/code/model/tests/test_recipebuilder.py (+2/-2) |
||||
| To merge this branch: | bzr merge lp:~abentley/launchpad/version-revno | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Paul Hummer (community) | code | 2010-06-10 | Approve on 2010-06-10 |
|
Review via email:
|
|||
Commit Message
Better default recipe.
Description of the Change
= Summary =
Provide a default recipe whose debian version is different for different
builds.
== Proposed fix ==
Use 0+{revno} as the default debian version template. This will cause the
debversion to change every time the base branch is updated. Using 0 as the
version number guarantees it won't interfere with legitimate packages.
Users can (and will be encouraged to) supply their own version instead.
== Pre-implementation notes ==
Discussed possible template strings with james westby
== Implementation details ==
The tests have lots of slashes because they're using regular expresions, and
+, { and } are special characters in regular expressions.
== Tests ==
bin/test sourcepackagerecipe
== Demo and Q/A ==
Create a new recipe. Its version string should be 0+{revno}.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/lp/
== Pyflakes notices ==
lib/lp/
258: local variable 'recipe_fings' is assigned to but never used
== Pylint notices ==
lib/lp/
164: [C0322, ISourcePackageR
distroserie
^
)
@export_
def requestBuild(

<rockstar> abentley, is {revno} special to bzr-builder?
<abentley> rockstar, yes.
<rockstar> abentley, ah great, so we don't need the MANIFEST at all.
<abentley> rockstar, huh?
<rockstar> abentley, we were talking about doing this ourselves, but we needed access to the MANIFEST to get to the bzr revno.
<abentley> rockstar, we'll still need manifests to abort duplicate builds, because {revno} is only evaluated once the build has started.
<rockstar> abentley, ah, okay.