dialog for 'send merge directive' fails from branch subdir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar GTK+ Frontends |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The new 'Send Merge Directive' feature in vis fails when vis is not started from the branch root directory. If I start vis, then click that menu item, this happens:
~/src/bzr/
Traceback (most recent call last):
File "/home/
window = SendMergeDirect
File "/home/
self._create()
File "/home/
submit_branch = self.submit_
File "/home/
return Branch.
File "/home/
File "/home/
File "/home/
File "/usr/lib/
File "/home/
File "/home/
bzrlib.
My submit branch is '../trunk', so it appears that the feature just needs to resolve that against the branch root instead of the current directory.
Versions:
bzr.dev r3535
bzr-gtk r531
Also, I get the same error (minus traceback) if I run 'bzr.dev send -o /dev/null', but this is not as much of an issue. On the CLI, I can specify a path to the submit branch, but the GUI fails before even giving me a chance to enter a path.
Changed in bzr-gtk: | |
status: | New → Confirmed |
I can't reproduce that error. If I start bzr vis from the olive subfolder in a branch from trunk and open that Send Merge directive, no error. If I press ok (leaving target branch empty as it is): jasper/ .bazaar/ plugins/ gtk/revisionmen u.py", line 95, in send_merge_ directive writelines( window. get_merge_ directive( ).to_lines( )) jasper/ .bazaar/ plugins/ gtk/mergedirect ive.py" , line 111, in get_merge_directive revision_ id=None) python2. 5/site- packages/ bzrlib/ merge_directive .py", line 477, in from_objects lock_write( ) python2. 5/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 2033, in lock_write ReadOnlyError( self) errors. ReadOnlyError: A write attempt was made in a read only transaction on KnitPackReposit ory('file: ///home/ jasper/ Programming/ bzr-gtk/ .bzr/repository /')
Traceback (most recent call last):
File "/home/
outf.
File "/home/
base_
File "/usr/lib/
repository.
File "/usr/lib/
raise errors.
bzrlib.
- If I press cancel the window is not properly destroyed and I can't reopen it. locations. conf locations. conf
- The 'email to' is filled in from ~/.bazaar/
- I miss the public branch text entry which is also set in ~/.bazaar/