Removing a file which is scheduled to be added prevents submitting
unrelated changelists.

Occurring w/ my current version (1.7.7), have not tried others.

Annotated & unannotated repro steps follow.

$ svn --version
svn, version 1.7.7 (r1393599)
   compiled Jan  5 2013, 15:01:56


Unannotated repro steps:

        $ svn status
        $ touch a b c
        $ svn add a b c
        $ svn cl "Add a and b" a b
        $ rm c
        $ svn commit --cl "Add a and b"
        svn: E155010: Commit failed (details follow):
        svn: E155010: '/home/nick/test_repo/c' is scheduled for addition, but
is missing


Annotated repro steps:


Starting with a clean & up-to-date repo:

        $ svn status

Create and add 3 files to the repo:

        $ touch a b c
        $ svn add a b c
        A         a
        A         b
        A         c

Add 2 of the files (a & b) to a changelist:

        $ svn cl "Add a and b" a b
        A [Add a and b] a
        A [Add a and b] b

        $ svn status
        A       c
        
        --- Changelist 'Add a and b':
        A       a
        A       b

Remove file 'c' which is slated for addition, but not part of the
changelist:

        $ rm c

        $ svn status
        !       c
        
        --- Changelist 'Add a and b':
        A       a
        A       b

Attempt to commit the changelist:

        $ svn commit --cl "Add a and b"
        svn: E155010: Commit failed (details follow):
        svn: E155010: '/home/nick/test_repo/c' is scheduled for addition, but
is missing


This behavior is unexpected, since the removed file (c) is not in the
changelist being committed.


Nick


Reply via email to