DirState error when trying to add files

Bug #937423 reported by Nalin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TortoiseBZR
Fix Released
Medium
IWATA Hidetaka

Bug Description

I am using Bazaar version 2.5b5 which includes Tortoise Bazaar 0.6.6b1.

First, I enter the Tortoise Bazaar settings and enable the option "Add files directly when no directories are selected" which is under the "Behaivior [sic] of Commands - Add" section of "General Options".

Next, I right click on a file and choose Tortoise Bazaar -> Add...

I will then get the following error message:
DirState(u'C:/Users/blah/Documents/Visual Studio 2010/Projects/dungeons2/.bzr/checkout/dirstate'). Game/data/sounds/sounds/motar/motar_burn.wav is not versioned.

This only happens when the "Add files directly when no directories are selected" option is enabled.

Revision history for this message
IWATA Hidetaka (hid-iwata) wrote :

Thank you for your report.

I guess, parent folder of selected files (In this case, Geme/.../motar) is not versioned yet.
TortoiseBzr don't add parent folders of selected files automatically, so, add command fails if parent folder is also unversioned.

I'll improve this behaivior.

Changed in tortoisebzr:
importance: Undecided → Medium
assignee: nobody → IWATA Hidetaka (hid-iwata)
Revision history for this message
Nalin (loneboco) wrote :

Yeah, that is correct. The folder the files were in was not versioned. However, TortoiseBzr does add the parent folder automatically if the "Add files directly when no directories are selected" option is unchecked. It brings up the Add window with the files you selected checked as well as the parent folder. In fact, there is no way to version the parent folder by itself. If you select the folder to be versioned, it will automatically select the files under it. If you un-select the files, it will remove the checkmark from the parent folder, not allowing it to be versioned.

Since there is no way to version just the folder, I've been versioning the selected files under the folder, which cause the parent folder to also be versioned. So yeah, in my opinion, if TortoiseBzr would automatically version the parent folder when the "Add files directly when no directories are selected" option is checked, it would be consistent behavior as when the option is unchecked.

Revision history for this message
IWATA Hidetaka (hid-iwata) wrote :

Fixed by 0.6.6.

Changed in tortoisebzr:
status: New → Fix Released
Changed in tortoisebzr:
milestone: none → 0.6.6
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.