Fix view diffs of files added to a branch (but not the trunk) in CVS
Fix view diffs of files added to a branch (but not the trunk) in CVS

Patch from Matt McClellan to fix view diffs of files added to a branch (but not
the trunk) in CVS.

When I attempt to view the diff that was created from a file added to a branch
in CVS, I get a FileNotFoundError.

The problem is that files added to a branch (and not the trunk) are put in the
'attic' in the repository, which shows up as part of the pathname in the patch.
For example, if file foo.c is added to the frobnitz module on the bobo branch,
the RCS file entry in path in the patch file will look like this:

RCS file: /cvs_root_dir/frobnitz/Attic/foo.c,v

CVSClient is cvs.py is stripping the repository directory and the ','v suffix,
but leaving the '/Attic/' component of the path, which is what causes the
FileNotFound error.

Fixes bug 542.



atagar/ReviewBoard,brennie/reviewboard,1tush/reviewboard,brennie/reviewboard,1tush/reviewboard,Khan/reviewboard,asutherland/opc-reviewboard,atagar/ReviewBoard,Khan/reviewboard,Khan/reviewboard,davidt/reviewboard,atagar/ReviewBoard,beol/reviewboard,reviewboard/reviewboard,asutherland/opc-reviewboard,davidt/reviewboard,custode/reviewboard,beol/reviewboard,1tush/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,1tush/reviewboard,Khan/reviewboard,chipx86/reviewboard,KnowNo/reviewboard,1tush/reviewboard,atagar/ReviewBoard,custode/reviewboard,beol/reviewboard,atagar/ReviewBoard,brennie/reviewboard,bkochendorfer/reviewboard,KnowNo/reviewboard,chazy/reviewboard,Khan/reviewboard,asutherland/opc-reviewboard,Khan/reviewboard,KnowNo/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,1tush/reviewboard,davidt/reviewboard,atagar/ReviewBoard,brennie/reviewboard,bkochendorfer/reviewboard,KnowNo/reviewboard,chazy/reviewboard,atagar/ReviewBoard,beol/reviewboard,chazy/reviewboard,chazy/reviewboard,chazy/reviewboard,chazy/reviewboard,chazy/reviewboard,Khan/reviewboard,reviewboard/reviewboard,sgallagher/reviewboard,atagar/ReviewBoard,chazy/reviewboard,sgallagher/reviewboard,chipx86/reviewboard,davidt/reviewboard,Khan/reviewboard,atagar/ReviewBoard,1tush/reviewboard,bkochendorfer/reviewboard,sgallagher/reviewboard,asutherland/opc-reviewboard,chazy/reviewboard,1tush/reviewboard,custode/reviewboard,chipx86/reviewboard,chipx86/reviewboard,custode/reviewboard,Khan/reviewboard,sgallagher/reviewboard