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

Re: svn commit: rev 2472 - trunk/subversion/libsvn_client

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-07-12 05:35:17 CEST

Thanks for fixing 675!

kevin@tigris.org writes:
> * subversion/libsvn_client/copy.c(setup_copy): Convert working copy source
> path to url if a src revision is specified. Also remove unnecessary if
> condition. "if (a || a)" is equivalent to "if (a)"
>
>
> Modified: trunk/subversion/libsvn_client/copy.c
> @@ -878,12 +879,26 @@
> happens to be the HEAD. It's fair enough to punt then, IMHO,
> and just demand that the user not specify a revision at all;
> beats mucking up this function with RA calls and such. */
> - if ((src_revision->kind != svn_client_revision_unspecified)
> - || (src_revision->kind != svn_client_revision_unspecified))
> + if (src_revision->kind != svn_client_revision_unspecified)

Chances are this was not meant to be (a || a), but (a || b), someone
just forgot to change a to b after cutting and pasting.

Based on the context, I suspect that it was meant to be
svn_client_revision_head. If you concur, can you restore with the
fix?

> + else
> + {
> + if (!src_is_url)
> + {
> + if (src_revision->kind != svn_client_revision_unspecified)
> + {
> + /* We can convert the working copy path to a URL based on the
> + entries file. */
> + svn_wc_entry_t *entry;
> + SVN_ERR (svn_wc_entry (&entry, src_path, FALSE, pool));
> + src_path = entry->url;
> + src_is_url = TRUE;
> + }
> }
> }

And perhaps same for the corresponding `if' here?

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 12 05:46:20 2002

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.