title: Extracting projects to their own repository in svn using svndumpfilter2 (python assertion error)
body: <p>I'm attempting to migrate a project out of one repository into its own repository to more easily handle authentication/authorization via ldap.  However, in attempting the svnadmin dump | svndumpfilter --include ... I get the standard error that some files in the included path were moved or copied from somewhere NOT in the included path, and thus the contents are not available.</p>
  
  <p>Google tells me that I need to use one of the svndumpfilter python script variants.  I have python 2.6.5 on windows server 2003 accessible via the command line.  All three of these scripts use standard input, but they each handle things a little different.  svndumpfilter2 starts, but on Revision 2, chokes with an assertion failure.  The code apparently expects a colon to be on that line, and there's not.  The dump file I'm using is just a simple svnadmin dump repo > out.dump.  Nothing has been done to it.</p>
  
  <p>The command(s) I'm using are:
  svnadmin dump D:\svn\repo | C:\Python26\python.exe "C:\Program Files\CollabNet\Subversion Server\svndumpfilter2.py" http: //localhost/svn/repo include Project > D:\svndump\project.dump</p>
  
  <p>OR</p>
  
  <p>svnadmin dump D:\svn\repo > out.dump</p>
  
  <p>type out.dump | C:\Python26\python.exe "C:\Program Files\CollabNet\Subversion Server\svndumpfilter2.py" http: //localhost/svn/repo include Project > D:\svndump\project.dump</p>
  
  <p>The output I get is:</p>
  
  <blockquote>
    <ul>
    <li>Dumped revision 0.</li>
    <li>Dumped revision 1. C:\Program Files\CollabNet\Subversion</li>
    <li>Server\svndumpfilter2.py:67:</li>
    <li>DeprecationWa rning: the md5 module is
    deprecated; use hashlib instead  </li>
    <li>import md5 Traceback (most recent call
    last):   File "C:\Program
    Files\CollabNet\Subversion
    Server\svndumpfilter2.py", line 40 6,</li>
    <li>in 
    lump = read_lump(fr)   File "C:\Program Files\CollabNet\Subversion
    Server\svndumpfilter2.py", line 23 9,</li>
    <li>in read_lump
    lump = read_rfc822_headers(f)   File "C:\Program
    Files\CollabNet\Subversion
    Server\svndumpfilter2.py", line 23 1,</li>
    <li>in read_rfc822_headers
    assert colon > 0 AssertionError</li>
    </ul>
  </blockquote>
  
  <p>The first part of the dump file it's failing on is:</p>
  
  <blockquote>
    <p>SVN-fs-dump-format-version: 2</p>
    
    <p>UUID:
    880c8176-308d-ea4f-8680-45defe5ec145</p>
    
    <p>Revision-number: 0
    Prop-content-length: 56
    Content-length: 56</p>
    
    <p>K 8 svn:date V 27
    2007-01-30T21:25:29.487250Z PROPS-END</p>
    
    <p>Revision-number: 1
    Prop-content-length: 151
    Content-length: 151</p>
    
    <p>K 7 svn:log V 40 Folders added to
    allow proper branching. K 10
    svn:author V 15 COMPANY\USER K 8
    svn:date V 27
    2007-02-02T21:02:22.321625Z PROPS-END</p>
    
    <p>Node-path: branch Node-kind: dir
    Node-action: add Prop-content-length:
    10 Content-length: 10</p>
    
    <p>PROPS-END</p>
    
    <p>Node-path: tags Node-kind: dir
    Node-action: add Prop-content-length:
    10 Content-length: 10</p>
    
    <p>PROPS-END</p>
    
    <p>Node-path: trunk Node-kind: dir
    Node-action: add Prop-content-length:
    10 Content-length: 10</p>
    
    <p>PROPS-END</p>
    
    <p>Revision-number: 2
    Prop-content-length: 109
    Content-length: 109</p>
  </blockquote>
  
  <p>Has anyone seen this before or have any ideas why this would be occuring?</p>