'bzr mkdir' should have a recursive option

Bug #253529 reported by Mary Gardiner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Wishlist
Jelmer Vernooij

Bug Description

I would like to be able to do something like the following:

$ bzr mkdir 1/2/3/4

Current reply:
bzr: ERROR: [Errno 2] No such file or directory: '1/2/3/4'

Expected reply:
Existence of 1/2/3/4, all versioned.

I don't mind whether or not there's an extra switch (like the -p flag to bare mkdir).

Related branches

Revision history for this message
Dan Watkins (oddbloke) wrote : Re: [Bug 253529] [NEW] 'bzr mkdir' should have a recursive option

On Thu, 31 Jul 2008 06:05:00 -0000
Mary Gardiner <email address hidden> wrote:
> I would like to be able to do something like the following:
>
> $ bzr mkdir 1/2/3/4
>
> Current reply:
> bzr: ERROR: [Errno 2] No such file or directory: '1/2/3/4'
>
> Expected reply:
> Existence of 1/2/3/4, all versioned.
>
> I don't mind whether or not there's an extra switch (like the -p flag
> to bare mkdir).
I think -p would make the most sense.

 status Confirmed
 importance Wishlist

--
Daniel Watkins (Odd_Bloke)

Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Andrew Bennetts (spiv) wrote :

bzr add automatically adds intermediate directories if necessary. So as a workaround you can use normal mkdir -p, then bzr add the result. e.g.:

$ bzr init mkdir-test
$ cd mkdir-test/
$ mkdir -p 1/2/3/4
$ bzr add 1/2/3/4
added 1
added 1/2
added 1/2/3
added 1/2/3/4

Revision history for this message
Russel Winder (russel) wrote :

Just wondering if this one is an alive or dead issue . . .

It would be nice to have a -p oprion to the mkdir command. If no-one has the time to actually do this, but does have the time to give me a few hints and act as adviser, I can have a go.

Revision history for this message
Wouter van Heyst (larstiq) wrote : Re: [Bug 253529] Re: 'bzr mkdir' should have a recursive option

On Sat, Jul 04, 2009 at 12:58:44PM -0000, Russel Winder wrote:
> Just wondering if this one is an alive or dead issue . . .
>
> It would be nice to have a -p oprion to the mkdir command. If no-one
> has the time to actually do this, but does have the time to give me a
> few hints and act as adviser, I can have a go.

Catching up on bugmail, 800 more to go. I think a -p option would
be nice, and I'm certainly willing to act as adviser.

Wouter van Heyst

Jared Hance (mathepic)
Changed in bzr:
assignee: nobody → Jared Hance (mathepic)
status: Confirmed → Fix Committed
Revision history for this message
Martin Pool (mbp) wrote :
Changed in bzr:
status: Fix Committed → In Progress
John A Meinel (jameinel)
Changed in bzr:
assignee: Jared Hance (mathepic) → nobody
status: In Progress → Confirmed
tags: added: patch-needswork
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.5b5
status: Confirmed → Fix Released
Jelmer Vernooij (jelmer)
Changed in bzr:
assignee: nobody → Jelmer Vernooij (jelmer)
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.