[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Bug? svn list doesn't show files added since last update

From: Mike Martin <gubespam_at_gmail.com>
Date: 2006-11-30 19:08:41 CET

I don't know if this is a bug that has been fixed already or not, but
hopefully someone can tell me. When you add a file to a working copy and
commit it, svn list does not show the file as existing until an svn update
is performed. Apparently svn add and/or svn commit are not updating the
necesary metadata in the working copy. To reproduce:

Check out a path
    svn co http://repos/trunk/calc calc
output:
    A calc/main.c
    A calc/other.h
    Checked out revision 8152.

Move into the calc directory

Add a file
    touch new_file.c
    svn add new_file.c

(1) List the files
    svn list
output:
    main.c
    other.h

Commit the change
    svn commit -m "Added a new file"

(2) List the files
    svn list
output:
    main.c
    other.h

Update the working copy
    svn update
output:
    At revision 8153.

(3) List the files
    svn list
output:
    main.c
    new_file.c
    other.h

I would think that the file would show up at step (1), or at least at step
(2), but it doesn't until step (3) after the svn update.
Received on Thu Nov 30 21:10:09 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.