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

Re: [PATCH] fix for issue 554

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2002-01-14 05:06:07 CET

On Sun, Jan 13, 2002 at 08:02:03PM -0800, Greg Stein wrote:
> On Sun, Jan 13, 2002 at 08:34:28PM -0500, Garrett Rooney wrote:
> >...
> > +++ ./subversion/libsvn_client/commit.c Sun Jan 13 19:37:15 2002
> > @@ -517,6 +517,10 @@
> > /* Construct full URL from PATH. */
> > SVN_ERR (svn_wc_entry (&entry, base_dir, pool));
> > url = entry->url;
> > +
> > + if (entry->copied)
> > + return svn_error_create(SVN_ERR_CL_COMMIT_IN_ADDED_DIR, 0, NULL,
> > + pool, "");
>
> There should be a message in there.

at the time i couldn't think of one that would make sense, but i
imagine it would be useful to tell the user what directory was
scheduled for addition, so i'll put that in.

> >...
> > +++ ./subversion/tests/clients/cmdline/commit_tests.py Sun Jan 13 20:24:33 2002
> > @@ -1211,6 +1211,29 @@
> > return 1
> > return 0
> >
> > +def commit_in_dir_scheduled_for_addition():
> > + "commit a file inside a directory that's already scheduled to be added"
> > +
> > + # Bootstrap: make independent repo and working copy.
> > + sbox = sandbox(commit_deleted_edited)
> > + wc_dir = os.path.join(svntest.main.general_wc_dir, sbox)
> > +
> > + if svntest.actions.make_repo_and_wc(sbox): return 1
> > +
> > + A_path = os.path.join(wc_dir, 'A')
> > + Z_path = os.path.join(wc_dir, 'Z')
> > + mu_path = os.path.join(wc_dir, 'Z', 'mu')
> > +
> > + svntest.main.run_svn(None, 'move', A_path, Z_path)
> > +
> > + was_cwd = os.getcwd()
>
> was_cwd is unused.

a remnant from a previous version of the test that tried to cd into
the wc before commiting. then i realized i didn't need to in order to
trigger the bug.

> Fix those (and the log message you noted), and +1

i'll make the changes and commit.

thanks for the review.

-garrett

-- 
garrett rooney                     Unix was not designed to stop you from 
rooneg@electricjellyfish.net       doing stupid things, because that would  
http://electricjellyfish.net/      stop you from doing clever things.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:56 2006

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.