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

svn switch does not update HeadURL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: all
    • Fix Version/s: 1.2.0
    • Component/s: cmdline client
    • Labels:
      None

      Description

      Files containing HeadURL with svn:keywords set to HeadURL do not update an
      embedded $HeadURL$ string in the file, when 'svn switch' to a new URL.
      
      
      $ svn --version
      svn, version 1.0.1 (dev build)
      
      $ svnadmin create --bdb-txn-nosync repo
      $ svn mkdir -m r1 file:///c:/repo/trunk
      $ svn mkdir -m r2 file:///c:/repo/branches
      $ svn co file:///c:/repo/trunk
      $ echo -e 'Head URL $HeadURL$' > trunk/file
      $ svn add trunk/file
      $ svn ps svn:keywords HeadURL trunk/file
      $ svn ci -m r3 trunk
      
      $ cat trunk/file
      Head URL $HeadURL: file:///c:/repo/trunk/file $
      
      $ svn cp -m r4 file:///c:/repo/trunk file:///c:/repo/branches/branch1
      $ svn switch file:///c:/repo/branches/branch1 trunk
      $ cat trunk/file
      Head URL $HeadURL: file:///c:/repo/trunk/file $
      
      $ svn up trunk/file
      $ cat trunk/file
      Head URL $HeadURL: file:///c:/repo/trunk/file $
      
      $ rm trunk/file
      $ svn up trunk/file
      $ cat trunk/file
      Head URL $HeadURL: file:///c:/repo/branches/branch1/file $
      

      Original issue reported by temp

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                subversion-importer Subversion Importer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: