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

option to make commit require explicit target(s)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • all
    • 1.10-consider
    • cmdline client

    Description

      My problem scenario:
      I have an automated process that change some files and it adds those filenames
      to a file, changed_files.tmp. Then i use svn commit -m "msg" --targets
      changed_files.tmp (because other modifications not done by automated process
      should not be committed). Problem: if no files were changed, changed_files.tmp
      will be empty and all changed files are committed (implicit add of "." if no
      targets specified). This is scary.
      
      Attached patch adds a new option to svn commit: --no-implicit-target. When
      specified, "." is not added if no other targets specified.
      

      Original issue reported by hardon

      Attachments

        1. 3_no-implicit-target3.patch
          0.6 kB
          Subversion Importer
        2. 2_no-implicit-target2.patch
          0.7 kB
          Subversion Importer
        3. 1_no-implicit-target.patch
          2 kB
          Subversion Importer

        Activity

          People

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

            Dates

              Created:
              Updated: