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

wc inconsistency bug in copies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • all
    • 0.30
    • libsvn_wc
    • other

    Description

      Found an wc inconsistency bug in the way copies work.
      
      cd wc1
      svn cp A/B/E A/D/newdir
      svn ci
      svn st -v
               ---> all of A/D/newdir claims to have CR 2, including children
      
      cd wc2
      svn up
      svn st -v
               ---> only A/D/newdir has CR2, but contents are at CR 1!
      
      The second case is correct, technically; I mean, the children of
      A/D/newdir technically *do* have a CR of 1 on the server.  The only
      reason they claim to have CR2 in the first case is due to the
      (incorrect) way we bump items after a commit: the added children were
      'targets' of the commit, and so our post-commit bumping logic assumes
      that they have a CR of the new revision.  But that's not true --
      because they're adds-with-history, these aren't new node-ids at all.
      
      So I think our post-commit bumping process needs to *not* bump the
      entry-props on commit targets that were 'added with history'.  Need to
      think about how to make this happen.
      

      Attachments

        1. 1_issue-620-patch.txt
          15 kB
          C. Michael Pilato

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sussman Ben Collins-Sussman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: