Merge lp:~mbp/bzr-builddeb/doc into lp:bzr-builddeb

Proposed by Martin Pool
Status: Merged
Merged at revision: 461
Proposed branch: lp:~mbp/bzr-builddeb/doc
Merge into: lp:bzr-builddeb
Diff against target: 57 lines (+19/-7)
1 file modified
cmds.py (+19/-7)
To merge this branch: bzr merge lp:~mbp/bzr-builddeb/doc
Reviewer Review Type Date Requested Status
James Westby Approve
Review via email: mp+28821@code.launchpad.net

Description of the change

This tries to make the merge-upstream help clearer, based on <http://jameswestby.net/bzr/builddeb/user_manual/normal.html>.

I'm not sure it's correct; please review carefully.

To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

This looks broadly ok to me. I think the examples should include one
appropriate for upstream-in-bzr projects, like bzr itself.

Revision history for this message
Martin Pool (mbp) wrote :

If I can get it to work for bzr I'll change the example :)

--
Martin

Revision history for this message
James Westby (james-w) wrote :

I've merged this with some added improvements of my own, 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 2010-05-28 20:49:11 +0000
3+++ cmds.py 2010-06-30 04:49:22 +0000
4@@ -461,34 +461,46 @@
5
6 You must supply the source to import from, and the version number of the
7 new release. The source can be a .tar.gz, .tar, .tar.bz2, .tgz or .zip
8- archive, or a directory. The source may also be a remote file.
9+ archive, or a directory. The source may also be a remote file described by a URL.
10
11 You must supply the version number of the new upstream release
12- using --version.
13+ using --version, unless you're importing from an upstream branch, in which
14+ case it can be guessed from that.
15
16 The distribution this version is targetted at can be specified with
17- --distribution. This will be used to guess the version number, so you
18- can always correct it in the changelog.
19+ --distribution.
20
21 If there is no debian changelog in the branch to retrieve the package
22 name from then you must pass the --package option. If this version
23 will change the name of the source package then you can use this option
24 to set the new name.
25+
26+ examples::
27+
28+ bzr merge-upstream --version 0.2 \
29+ http://example.org/releases/scruff-0.2.tar.gz
30+
31+ If there is no upstream release tarball, and you want bzr-builddeb to
32+ create the tarball for you::
33+
34+ bzr merge-upstream --version 0.2 http://scruff.org/bzr/scruff.dev
35+
36 """
37 takes_args = ['location?', 'upstream_branch?']
38 aliases = ['mu']
39
40 package_opt = Option('package', help="The name of the source package.",
41 type=str)
42- version_opt = Option('version', help="The version number of this release.",
43- type=str)
44+ version_opt = Option('version',
45+ help="The version number of this release, for example \"0.2\".",
46+ type=str)
47 distribution_opt = Option('distribution', help="The distribution that "
48 "this release is targetted at.", type=str)
49 directory_opt = Option('directory',
50 help='Working tree into which to merge.',
51 short_name='d', type=unicode)
52 last_version_opt = Option('last-version',
53- help='The previous version that was merged..',
54+ help='The previous version that was merged.',
55 type=str)
56 force_opt = Option('force',
57 help=('Force a merge even if the upstream branch '

Subscribers

People subscribed via source and target branches