bzr-builddeb --export-upstream uses bzr revision from changelog and not from config/command-line

Bug #415572 reported by Alexander Sack
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-builddeb (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: bzr-builddeb

1. use a .bzr-builddeb/default.conf with proper export-upstream-revision and export-upstream = .
2. use a bzrREV in changelog version
3. run bzr bd --merge

result: it produces orig.tar.gz from bzrREV
expected result: produce orig.tar.gz based on default.conf values

This bug feels like a general design problem. As a rule of thumb, command line arguments should strictly dominate config files which in turn should strictly dominate implicit automagic.

ii bzr 1.17-1 easy to use distributed version control system
ii bzr-builddeb 2.2~ubuntu2 bzr plugin for Debian package management
ii bzrtools 1.17.0-1 Collection of tools for bzr

Revision history for this message
Alexander Sack (asac) wrote :

example branch: https://code.edge.launchpad.net/~asac/+junk/LP415572.example

just branch it and run bzr bd;

Result: revision 9 is exported as orig.tar.gz, while an upstream revision is configured in default.conf

Revision history for this message
Alexander Sack (asac) wrote :

we worked around this by using "rev" rather than "bzr" token in changelog for now: https://code.launchpad.net/~ubuntu-dev/firefox-extensions/bindwood.ubuntu

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 415572] [NEW] bzr-builddeb --export-upstream uses bzr revision from changelog and not from config/command-line

Alexander Sack wrote:
> Public bug reported:
>
> Binary package hint: bzr-builddeb
>
>
> 1. use a .bzr-builddeb/default.conf with proper export-upstream-revision and export-upstream = .
> 2. use a bzrREV in changelog version
> 3. run bzr bd --merge
>
> result: it produces orig.tar.gz from bzrREV
> expected result: produce orig.tar.gz based on default.conf values
>
> This bug feels like a general design problem. As a rule of thumb,
> command line arguments should strictly dominate config files which in
> turn should strictly dominate implicit automagic.

I don't know why you think it is a design problem, that is the rule.
This was simply a bug, which is now fixed.

Thanks,

James

Changed in bzr-builddeb (Ubuntu):
status: New → Won't Fix
status: Won't Fix → Fix Committed
importance: Undecided → Medium
Revision history for this message
Elliot Murphy (statik) wrote :

yay bugfixes!

Revision history for this message
Alexander Sack (asac) wrote :

thanks.

Revision history for this message
Alexander Sack (asac) wrote :

re: why a design problem ... all i wanted to say is that we might want to check if this applies for other settings as well.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr-builddeb - 2.2~ubuntu3

---------------
bzr-builddeb (2.2~ubuntu3) karmic; urgency=low

  [ Jelmer Vernooij ]
  * Automatically use merge mode if there's only a debian/ directory in
    the packaging branch. Closes: #529816.

  [ James Westby ]
  * Merge merge-package command from Muharem Hrnjadovic to allow merging
    another branch of the same package in a way that will avoid spurious
    conflicts from divergent upstream histories. Thanks Muharem.
  * Don't crash on merge-upstream due to API changes not being fully applied.
  * Add plugin information as parsed by "bzr plugin-info".
  * Improve the error when the upstream tag is missing during merge-upstream.
  * Also query the config file for the revision to use in export-upstream
    (LP: #415572)
  * Don't populate the commit message editor with all lines added to
    debian/changelog. Only use the stripped version of the "change" lines.
  * Always use the date from debian/changelog during import-dsc. Thanks
    Sveinung Kvilhaugsvik.
  * pristine-tar errors are no longer fatal for building the package.
    Thanks Muharem. (LP: #417153)
  * Refuse to build a conflicted tree. Thanks Muharem. (LP: #381303)
  * Don't crash if there are no deb-src lines when building. (LP: #375897)
  * Make import-dsc work against redirected URIs. Thanks Muharem (LP: #337209)

 -- James Westby <email address hidden> Sun, 26 Jul 2009 18:38:47 +0200

Changed in bzr-builddeb (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.