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

Re: Problem with changelists and new directories

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Mon, 21 Jul 2008 16:09:24 -0400

Karl Fogel wrote:
> "John Abd-El-Malek" <john.abdelmalek_at_gmail.com> writes:
>> Hello, my team of about several dozen developers has been using Rietveld for
>> code reviews. We've created wrapper scripts that use svn changelists to group
>> files in one code review together. However we're running into an issue when
>> adding files in a new directory. The problem is that the new directory can't
>> be added to the changelist. When someone tries to commit the changelist, it
>> fails because the new directory isn't committed.
>
> I thought you couldn't add directories to changelists at all? Aren't
> they only for files?

That's the problem, Karl.

They have a situation like this:

    svn changelist "issue-21" wc/mu
    svn changelist "issue-21" wc/A/D/G/rho
    mkdir wc/some-new-module
    edit wc/some-new-module/new-file
    svn changelist "issue-21" wc/some-new-module/new-file

Now, they have 3 files in a changelist "issue-21", but one of those files
lives in a directory slated for addition. When they run 'svn commit
--changelist issue-21', Subversion does as told -- tries to commit only
those three changelist-bearing files. But of course, you can't commit a
file that lives in a directory scheduled for addition if you don't also
commit said directory.

(Non-minimal, admittedly) recipe attached.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2008-07-21 22:09:44 CEST

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

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