Merge lp:~jelmer/bzr-builddeb/revison-logic into lp:bzr-builddeb

Proposed by Jelmer Vernooij
Status: Merged
Merged at revision: 455
Proposed branch: lp:~jelmer/bzr-builddeb/revison-logic
Merge into: lp:bzr-builddeb
Diff against target: 12 lines (+1/-1)
1 file modified
cmds.py (+1/-1)
To merge this branch: bzr merge lp:~jelmer/bzr-builddeb/revison-logic
Reviewer Review Type Date Requested Status
Bzr-builddeb-hackers Pending
Review via email: mp+25841@code.launchpad.net

Description of the change

This fixes the logic that errors out when --revision is specified and a tarball is being merged.

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

On Mon, May 24, 2010 at 3:00 AM, Jelmer Vernooij <email address hidden> wrote:
> Jelmer Vernooij has proposed merging lp:~jelmer/bzr-builddeb/revison-logic into lp:bzr-builddeb.
>
> Requested reviews:
>  Bzr-builddeb-hackers (bzr-builddeb-hackers)
>
>
> This fixes the logic that errors out when --revision is specified and a tarball is being merged.

Do we want to error out? Or does this not apply when there is a
tarball *and* a branch?

-Rob

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

The logic in the check was incorrect. We do want to error out if there was a tarball specified (since the --revision doesn't make any sense then).

Revision history for this message
Robert Collins (lifeless) wrote :

Why doesn't it make sense?

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

On Mon, 24 May 2010 02:43:22 -0000, Robert Collins <email address hidden> wrote:
> Why doesn't it make sense?

The error message was badly worded, the check only kicks in if there is
no branch, but the logic was indeed inverted.

Thanks,

James

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-06 14:30:28 +0000
3+++ cmds.py 2010-05-23 15:00:46 +0000
4@@ -561,7 +561,7 @@
5 else:
6 upstream_revision = upstream_branch.last_revision()
7
8- if no_tarball and revision is not None:
9+ if not no_tarball and revision is not None:
10 raise BzrCommandError("--revision is not allowed when merging a tarball")
11
12 if version is None:

Subscribers

People subscribed via source and target branches