Merge lp:~jelmer/bzr-builddeb/suggest-snapshot into lp:bzr-builddeb

Proposed by Jelmer Vernooij
Status: Merged
Merge reported by: Jelmer Vernooij
Merged at revision: not available
Proposed branch: lp:~jelmer/bzr-builddeb/suggest-snapshot
Merge into: lp:bzr-builddeb
Diff against target: 48 lines (+14/-4)
3 files modified
cmds.py (+4/-1)
debian/changelog (+7/-0)
util.py (+3/-3)
To merge this branch: bzr merge lp:~jelmer/bzr-builddeb/suggest-snapshot
Reviewer Review Type Date Requested Status
James Westby Approve
Review via email: mp+53013@code.launchpad.net

Description of the change

If merge-upstream doesn't know what to merge it currently suggests the user to specify --version. Changes this to also suggest --snapshot if the upstream branch is known.

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Breaking the long line would be good, but otherwise this is a good idea.

Thanks,

James

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmds.py'
2--- cmds.py 2011-03-04 18:29:16 +0000
3+++ cmds.py 2011-03-11 13:03:29 +0000
4@@ -702,7 +702,10 @@
5 version = primary_upstream_source.get_latest_version(
6 package, current_version)
7 if version is None:
8- raise BzrCommandError("You must specify the version number using --version.")
9+ if upstream_branch_source is not None:
10+ raise BzrCommandError("You must specify the version number using --version or specify --snapshot to merge a snapshot from the upstream branch.")
11+ else:
12+ raise BzrCommandError("You must specify the version number using --version.")
13 assert isinstance(version, str)
14 note("Using version string %s." % (version))
15 # Look up the revision id from the version string
16
17=== modified file 'debian/changelog'
18--- debian/changelog 2011-03-11 01:12:42 +0000
19+++ debian/changelog 2011-03-11 13:03:29 +0000
20@@ -1,3 +1,10 @@
21+bzr-builddeb (2.7.1) unstable; urgency=low
22+
23+ * Add Ubuntu oneiric and Debian wheezy to the list of supported
24+ distributions.
25+
26+ -- Jelmer Vernooij <jelmer@debian.org> Fri, 11 Mar 2011 11:18:52 +0100
27+
28 bzr-builddeb (2.7) unstable; urgency=low
29
30 [ James Westby ]
31
32=== modified file 'util.py'
33--- util.py 2011-02-28 13:11:48 +0000
34+++ util.py 2011-03-11 13:03:29 +0000
35@@ -76,12 +76,12 @@
36 )
37
38
39-DEBIAN_RELEASES = ('woody', 'sarge', 'etch', 'lenny', 'squeeze', 'stable',
40- 'testing', 'unstable', 'experimental', 'frozen', 'sid')
41+DEBIAN_RELEASES = ('woody', 'sarge', 'etch', 'lenny', 'squeeze', 'wheezy',
42+ 'stable', 'testing', 'unstable', 'experimental', 'frozen', 'sid')
43 DEBIAN_POCKETS = ('', '-security', '-proposed-updates', '-backports')
44 UBUNTU_RELEASES = ('warty', 'hoary', 'breezy', 'dapper', 'edgy',
45 'feisty', 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic',
46- 'lucid', 'maverick', 'natty')
47+ 'lucid', 'maverick', 'natty', "oneiric")
48 UBUNTU_POCKETS = ('', '-proposed', '-updates', '-security', '-backports')
49
50

Subscribers

People subscribed via source and target branches