Closed GoogleCodeExporter closed 9 years ago
Which version of svnplot you are using ? Comment says version 1.4. But I have
not released version 1.4. Current version in 0.7.4.
Many issues related to unknown node kind are fixed in 0.7.4.
>>- When you go through the list, and you come to an entry without a
'copyfrom_path', >>you should see if its parent was copied from some place else.
svnplot is already doing this. May be I have missed some case. I will have a
look at the viewvc code. Thanks for the link.
regards,
Nitin
Original comment by nitinbh...@gmail.com
on 26 Feb 2011 at 3:28
My apologies, I was indeed using 0.7.4 I looked in Subversion and made sure
that the offending code was still present before I submitted the bug.
The offending lines is in the file svnlogiter.py:
if( self.change_type() == 'D'):
#if change type is 'D' then reduce the 'revno' to appropriately detect the binary file type.
logging.debug("Found file deletion for <%s> XXX" % filepath)
logging.debug("XXX< %s> %d" % (filepath, revno))
filepath = self.prev_filepath()
revno= self.prev_revno()
logging.debug("XXX <%s> %d" % (filepath, revno))
binary = self.logclient.isBinaryFile(filepath, revno)
The problem is that you call self.prev_filepath(), and self.prev_revno() which
don't take into account whether a parent directory of the current file was
copied from elewhere.
Output (with my additional debug statements):
2011-02-26 08:54:16,804 DEBUG Updating line count for revision 8350
2011-02-26 08:54:16,804 DEBUG Changed path count : 16
2011-02-26 08:54:16,807 DEBUG Using file level revision diff
2011-02-26 08:54:16,808 DEBUG DiffLineCount 8350 : /project/XXX/tags/XXX/ : A :
0 : 0
2011-02-26 08:54:16,809 DEBUG Found file deletion for
</project/XXX/tags/XXX/XXX/XXX_editor.log>
2011-02-26 08:54:16,809 DEBUG XXX< /project/XXX/tags/XXX/XXX/XXX_editor.log>
8350
2011-02-26 08:54:16,810 DEBUG XXX </project/XXX/trunk/XXX/XXX_editor.log> 8349
2011-02-26 08:54:16,810 DEBUG Binary file check for file </project/XXX/tru
nk/XXX/XXX_editor.log> revision:8349
2011-02-26 08:54:16,819 ERROR Error in diffline count
Above, it goes from revision 8350, to 8349, which it shouldn't, and also gets
the parent path wrong as well.
Original comment by imran2...@gmail.com
on 26 Feb 2011 at 2:00
>>The problem is that you call self.prev_filepath(), and self.prev_revno()
which don't >>take into account whether a parent directory of the current file
was copied from >>elewhere.
For every log entry,'__updateCopyFromPaths' is called which update
prev_filepath and prev_revno in case a parent directory of the current file was
copied from elsewhere. It is possible that I missed some condition in
__updateCopyFromPaths function.
can you send me the log entries for the revision (8350). I will get some idea
what is going wrong ?
Original comment by nitinbh...@gmail.com
on 28 Feb 2011 at 4:17
version 0.7.5 contains some more fixes for unknown node kind errors. Please
check if this solves your problem
Original comment by nitinbh...@gmail.com
on 28 May 2011 at 1:44
i have not seen 'unknown kind' reports after the latest release. Hence marking
this as fixed.
Original comment by nitinbh...@gmail.com
on 9 Aug 2011 at 5:32
Original issue reported on code.google.com by
imran2...@gmail.com
on 25 Feb 2011 at 5:08