bzr crashed when attempting to add directory containing an hg repository. ERROR: bzrlib.errors.ReadOnlyError

Bug #688710 reported by Vernon Cole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Hg Plugin
Triaged
Low
Unassigned

Bug Description

This is VERY low priority. The simple work-around is "don't DO that." However, the fix might be simple, or a more specific error message might be possible.

I added a NetBeans project tree to an existing bzr working directory by copying it there using "cp -r".
I must have triggered NetBeans built-in mercurial support on the project at some time. (I am learning Java for a college class -- and like Python better with every Java program I write.) The result was that inadvertently placed a mercurial tree inside my bazaar working set. When I attempted to "bzr add" the new directory, bazaar crashed.

I have the bzr-hg 0.2.0~bzr299-1 plugin installed. I don't know if the bug is in the plugin or in bzr itself. It's more important to me to have bzr-hg working on Windows than to have this fixed, so don't spend a lot of time on it.

Revision history for this message
Vernon Cole (vernondcole) wrote :
Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Triaged
affects: bzr → bzr-hg
Changed in bzr-hg:
importance: Undecided → Low
Revision history for this message
Vernon Cole (vernondcole) wrote :

Note: Removing .hg directory and .hgignore file completely fixes the problem.

Console dump of affected directory listing (before fix) follows....

vernon@dlc-ubuntu:~/BZR/vernons$ ls -al WGU/GTT1/HelloWorld
total 44
drwxr-xr-x 8 vernon vernon 4096 2010-11-10 12:43 .
drwxr-xr-x 5 vernon vernon 4096 2010-12-10 09:43 ..
drwxr-xr-x 4 vernon vernon 4096 2010-11-10 12:43 build
-rw-r--r-- 1 vernon vernon 3651 2010-11-10 11:29 build.xml
drwxr-xr-x 2 vernon vernon 4096 2010-11-10 12:43 dist
drwxr-xr-x 3 vernon vernon 4096 2010-11-12 21:30 .hg
-rw-r--r-- 1 vernon vernon 52 2010-11-10 11:33 .hgignore
-rw-r--r-- 1 vernon vernon 82 2010-11-10 11:29 manifest.mf
drwxr-xr-x 4 vernon vernon 4096 2010-11-10 12:13 nbproject
drwxr-xr-x 3 vernon vernon 4096 2010-11-12 21:30 src
drwxr-xr-x 2 vernon vernon 4096 2010-11-10 11:29 test
vernon@dlc-ubuntu:~/BZR/vernons$ ls -al WGU/GTT1/HelloWorld/.hg
total 20
drwxr-xr-x 3 vernon vernon 4096 2010-11-12 21:30 .
drwxr-xr-x 8 vernon vernon 4096 2010-11-10 12:43 ..
-rw-r--r-- 1 vernon vernon 57 2010-11-10 11:33 00changelog.i
-rw-r--r-- 1 vernon vernon 23 2010-11-10 11:33 requires
drwxr-xr-x 2 vernon vernon 4096 2010-12-10 11:43 store

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This should eventually add the hg repository as a subrepository.

For the moment, however, it should not trigger a traceback but just print a normal error.

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.