'bzr mkdir' should have a recursive option

Bug #253529 reported by Mary Gardiner on 2008-07-31
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
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

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
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

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.

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) on 2009-10-14
Changed in bzr:
assignee: nobody → Jared Hance (mathepic)
status: Confirmed → Fix Committed
Martin Pool (mbp) wrote :
Changed in bzr:
status: Fix Committed → In Progress
John A Meinel (jameinel) on 2011-04-21
Changed in bzr:
assignee: Jared Hance (mathepic) → nobody
status: In Progress → Confirmed
tags: added: patch-needswork
Vincent Ladeuil (vila) on 2012-01-16
Changed in bzr:
milestone: none → 2.5b5
status: Confirmed → Fix Released
Jelmer Vernooij (jelmer) on 2012-01-16
Changed in bzr:
assignee: nobody → Jelmer Vernooij (jelmer)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers