BUG Ticket (closed)

BzrParser does not properly handle directory renames

When a directory is renamed, the bazaar log does not report every file as renamed. Instead, it lists only the directory itself, and the renames of the files within that directory are implied. Ohloh requires every file to be explicitly listed. When a directory is renamed, we need to generated 'A' and 'D' events to reflect the renaming of every source file in the directory. 1. How do we know that the renamed item is a directory? 2. How do we find the contents of this renamed directory? Line counts will be very badly broken until this is fixed.
on 02.13.09 reported by: robinluckey
on 02.13.09 by robinluckey
Repro case: {{{ bzr log -v -r 220.90.1 http://bzr.debian.org/pkg-bazaar/bzr-svn/experimental/ }}} The `subvertpy/` directory is renamed to `/`. BzrParser must report that all files in `subvertpy/` have been renamed as well.
on 02.13.09 by robinluckey
- **status** was changed to _invalid_ On deeper reflection, this is not a bug. Renaming a file does not change its line count, so it's OK for Ohloh to ignore the renaming of an entire directory. Our online commit data will show the before and after directory names being deleted and added, which is not really ideal, but browsing commits from our line count database is short-lived anyway.... right?