#NEWLINE# def parse_diff_header( self , linenum , info ) : #NEWLINE# #INDENT# 'Obtain correct clearcase file paths.\n\n        Paths for the same file may differ from paths in developer view\n        because it depends from configspec and this is custom so we\n        translate oids, attached by post-review, to filenames to get paths\n        working well inside clearcase view on reviewboard side.\n        ' #NEWLINE# linenum = super ( ClearCaseDiffParser , self ) . parse_diff_header ( linenum , info ) #NEWLINE# m = self . SPECIAL_REGEX . match ( linenum . lines [ linenum ] ) #NEWLINE# if m : #NEWLINE# #INDENT# currentFilename = info . get ( 'origFile' , '' ) #NEWLINE# try : #NEWLINE# #INDENT# info [ 'origFile' ] = self . _oid2filename ( m . group ( 1 ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# logging . debug ( 'oid (%s) not found, get filename from client' , m . group ( 1 ) ) #NEWLINE# info [ 'origFile' ] = self . client_relpath ( currentFilename ) #NEWLINE# #UNINDENT# currentFilename = info . get ( 'newFile' , '' ) #NEWLINE# try : #NEWLINE# #INDENT# info [ 'newFile' ] = self . _oid2filename ( m . group ( 2 ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# logging . debug ( 'oid (%s) not found, get filename from client' , m . group ( 2 ) ) #NEWLINE# info [ 'newFile' ] = self . client_relpath ( currentFilename ) #NEWLINE# #UNINDENT# linenum += 1 #NEWLINE# if ( ( linenum < len ( self . lines ) ) and ( self . lines [ linenum ] . startswith ( b'Binary files ' ) or self . lines [ linenum ] . startswith ( b'Files ' ) ) ) : #NEWLINE# #INDENT# info [ 'origInfo' ] = '' #NEWLINE# info [ 'newInfo' ] = '' #NEWLINE# info [ 'binary' ] = True #NEWLINE# linenum += 1 #NEWLINE# #UNINDENT# #UNINDENT# return linenum