bzr bundle -r N.. doesn't work

Bug #61685 reported by Matthieu Moy
10
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Aaron Bentley

Bug Description

Hi,

To explicitly specify a range of revision for bundle,

$ bzr bundle -r N..

doesn't work:

$ bzr bundle -r last:4..
# Bazaar revision bundle v0.8
#
$

One has to explicitly say "last:1" instead.

Revision history for this message
Alexander Belchenko (bialix) wrote :

help for bundle command does not cover this case with -r N..
so I think it's related to bug #57664.

Probably this bug appear because options parser of bzr cannot distinguish between -rN and -rN.. ?

Changed in bzr:
status: Unconfirmed → Needs Info
Revision history for this message
Alexander Belchenko (bialix) wrote :

This duplicate of bug #71100

Revision history for this message
John A Meinel (jameinel) wrote :

no, -r N => [N], while -r N.. => [N, None], so you can tell which one is supplied.

I think we need to do something like:

        elif len(revision) < 3:
            if revision[-1].spec is None:
              target_revision = target_branch.last_revision()
            else:
              target_revision = revision[-1].in_history(target_branch).rev_id
            if len(revision) == 2:
                if base_specified:
                    raise errors.BzrCommandError('Cannot specify base as well'
                                                 ' as two revision arguments.')
                base_revision = revision[0].in_history(target_branch).rev_id

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

FWIW, this is still broken in 0.17.0.

Changed in bzr:
status: Incomplete → Confirmed
Aaron Bentley (abentley)
Changed in bzr:
assignee: nobody → aaron-bentley
status: Confirmed → Fix Committed
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 0.91
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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