Merge lp:~simon-kersey/bzr-explorer/568728-fix into lp:bzr-explorer
| Status: | Merged |
|---|---|
| Merged at revision: | 485 |
| Proposed branch: | lp:~simon-kersey/bzr-explorer/568728-fix |
| Merge into: | lp:bzr-explorer |
| Diff against target: |
94 lines (+31/-7) 3 files modified
NEWS (+2/-0) lib/explorer.py (+9/-7) lib/location.py (+20/-0) |
| To merge this branch: | bzr merge lp:~simon-kersey/bzr-explorer/568728-fix |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alexander Belchenko | 2010-04-28 | Approve on 2010-08-24 | |
| Martin Packman (community) | Abstain on 2010-05-03 | ||
|
Review via email:
|
|||
Description of the Change
Fixes refresh when working tree directory renamed or deleted (Bug 568728)
Changed QExplorerMainWi
Refactored Location models so that they have methods to indicate that the model supports a working tree and has a working tree. Updated QExplorerMainWi
To test (on Windows):
- Start BzrExplorer
- Open a repository containing branches/checkouts
- Using OS copy one of the branches or checkouts within the repository
- In BzrExplorer refresh repository tab - check copied branch/checkout now shown
- Double click on the copied branch/checkout in BzrExplorer repository tab to open it
- Using OS attempt to delete copied branch/checkout: should fail whilst current tab in BzrExplorer is the copied branch/checkout (existing behaviour)
- Change current tab in BzrExplorer to be repository
- Using OS attempt to delete copied branch/checkout: should succeed
- Refresh the repository tab in BzrExplorer: deleted branch/checkout should be removed
- Change current tab in BzrExplorer to be deleted branch/checkout: "Unable to change to ..." error dialog should be displayed
- OK error dialog: tab for deleted branch/checkout should be closed
Repeat above but instead of deleting copied branch/checkout using OS rename it. The same results should be observed.
- 468. By Simon Kersey on 2010-05-06
-
Remove trailing whitespace
| Simon Kersey (simon-kersey) wrote : | # |
> Try and avoid adding trailing whitespace to lines, it's bad for diff and
> blame:
> 45 -<EOL>
> 46 + <EOL>
>
Updated to remove trailing whitespace
> Is there no way of writing an automated test for this? Steps to reproduce the
> problem are great, but aren't going to be repeated every release to ensure the
> bugfix still works.
At the moment there's not much in the way of tests for Bzr-Explorer. I don't mind trying to write some for this patch but don't have a clear idea where to start.
- 469. By Simon Kersey on 2010-08-23
-
merge trunk
| Alexander Belchenko (bialix) wrote : | # |
Sorry for the delay. I will review it soon. (Ping to myself)
| Alexander Belchenko (bialix) wrote : | # |
Just one note: please don't add extra blank lines between methods, as you do in lib/explorer.py after do_refresh method. I'll remove it before merging, this note for future.
Thank you for you fix!


Try and avoid adding trailing whitespace to lines, it's bad for diff and blame:
45 -<EOL>
46 + <EOL>
Is there no way of writing an automated test for this? Steps to reproduce the problem are great, but aren't going to be repeated every release to ensure the bugfix still works.