Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-1911

svndumpfilter not correctly remapping removed revisions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: unscheduled
    • Component/s: svndumpfilter
    • Labels:
      None

      Description

      When using the --drop-empty-revs and --renumber-revs command line
      options to svndumpfilter, the remapped revisions may be incorrectly
      calculated, leading to an invalid dump file.  Currently the code does
      not remap the revised revision for a removed revision to the previous
      revision, leading to broken dump files that copy files from the
      previous revision.
      
      I have a patch for this in the works.
      
      Below is a a recipe.
      
      Blair
      
      #!/bin/sh -e
      
      svnadmin create repos1
      svn co file://`pwd`/repos1 wc1
      
      cd wc1
      cp /etc/group /etc/passwd .
      svn add group passwd
      svn ci -m ''
      svn update
      
      svn rm passwd
      svn ci -m ''
      svn update
      
      svn cp group group.1
      svn ci -m ''
      svn update
      
      cd ..
      
      svnadmin dump repos1 > dump1
      svndumpfilter include \
          --drop-empty-revs \
          --renumber-revs group < dump1 > dump1.filtered
      
      svnadmin create repos2
      svnadmin load repos2 < dump1.filtered
      

        Attachments

        1. 1_svn-1911-patch.txt
          6 kB
          C. Michael Pilato
        2. 2_sc_x.txt
          0.0 kB
          Subversion Importer
        3. 3_svn-1911-patch-2.txt
          8 kB
          C. Michael Pilato

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              blair Blair Zajac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: