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

svn add foo foo complains

    XMLWordPrintableJSON

    Details

      Description

      (Setting component to cmdline since my backtrace starts in add-cmd.c, but I'm
      pretty sure libsvn_client/add.c does the same check, and therefore may also be
      susceptible to the bug.)
      
      % touch foo
      % ls
      A  foo  iota
      % $svn add f* *o 
      A         foo
      svn: warning: W150002: '/tmp/svn/wc1/trunk/foo' is already under version control
      subversion/svn/add-cmd.c:108: (apr_err=200009)
      subversion/svn/add-cmd.c:103: (apr_err=200009)
      svn: E200009: Could not add all targets because some targets are already versioned
      subversion/svn/add-cmd.c:94: (apr_err=200009)
      svn: E200009: Illegal target for the requested operation
      zsh: exit 1     $SVN add f* *o
      % 
      
      svn should be smart enough to uniq() the targets, rather than error out on me
      because I tried to add it twice.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              danielsh Daniel Shahaf
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: