You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Francois Beausoleil <fb...@users.sourceforge.net> on 2003/12/14 19:14:16 UTC
Cannot copy -rBASE in WC ?
Hi,
I was inside a WC, and tried copying a file from BASE (WC is at HEAD).
The file in question was modified in the WC.
Here's what I did, and SVN's answer:
K:\...\account>svn copy -rbase AccountTest.java AccountTrialTest.java
svn: A path under version control is needed for this operation
Then, I copied HEAD, and all was fine:
K:\...\account>svn copy -rhead AccountTest.java AccountTrialTest.java
Is this a bug or am I misunderstanding what BASE means ?
K:\...\account>svn --version
svn, version 0.34.0 (r7859)
compiled Dec 4 2003, 08:08:28
Thanks !
François
Developer of Java Gui Builder
http://jgb.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: [PATCH] Issue 1643: Cannot copy -rBASE while in WC
Posted by John Szakmeister <jo...@szakmeister.net>.
On Monday 22 December 2003 13:13, kfogel@collab.net wrote:
> John Szakmeister <jo...@szakmeister.net> writes:
> > Well, I made a patch for this problem to at least get the command
> > working. However, it's not an ideal solution since it will go to the
> > network and contact the repository. I looked at making it go to the
> > text-base, and it turned out that was going to be a significant change.
> > One that I would feel uncomfortable committing while we're in Beta.
>
> (Thanks for the conservativism :-) ).
Your welcome. :-)
> Might be good to attach this patch to the issue, even if you're not
> sure it's th best solution.
Done. I meant to before but got sidetracked. Thanks for reminding me!
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: [PATCH] Issue 1643: Cannot copy -rBASE while in WC
Posted by kf...@collab.net.
John Szakmeister <jo...@szakmeister.net> writes:
> Well, I made a patch for this problem to at least get the command working.
> However, it's not an ideal solution since it will go to the network and
> contact the repository. I looked at making it go to the text-base, and it
> turned out that was going to be a significant change. One that I would feel
> uncomfortable committing while we're in Beta.
(Thanks for the conservativism :-) ).
Might be good to attach this patch to the issue, even if you're not
sure it's th best solution.
-K
> Log:
> Stop 'svn copy -rBASE wc_path1 wc_path2' from failing. This isn't the ideal
> answer since it will contact the repository, but presented the least amount of
> change given that we're on our way to 1.0.
>
> * subversion/libsvn_client/copy.c
> (repos_to_wc_copy): Updated this function to now take a WC path as a
> parameter, to allow keywords like BASE, PREV, and COMMITTED to be resolved.
> Renamed src_url parameter to src_path_or_url to reflect the change.
>
> (setup_copy): Stop referring to parameters as being URLs. Instead, indicate
> whether or not we want to go to the repository for the source or
> destination. Also, stop resolving a source path to a URL in the repos->wc
> case. Instead, let repos_to_wc_copy() resolve it, since it needs to wc path
> to resolve the revision parameter correctly.
>
>
> Index: subversion/libsvn_client/copy.c
> ===================================================================
> --- subversion/libsvn_client/copy.c (revision 8036)
> +++ subversion/libsvn_client/copy.c (working copy)
> @@ -155,7 +155,6 @@
> ctx->cancel_func, ctx->cancel_baton,
> ctx->notify_func, ctx->notify_baton, pool));
>
> -
> if (is_move)
> {
> SVN_ERR (svn_wc_delete (src_path, src_access,
> @@ -728,7 +727,7 @@
>
>
> static svn_error_t *
> -repos_to_wc_copy (const char *src_url,
> +repos_to_wc_copy (const char *src_path_or_url,
> const svn_opt_revision_t *src_revision,
> const char *dst_path,
> svn_client_ctx_t *ctx,
> @@ -740,9 +739,31 @@
> svn_revnum_t src_revnum;
> svn_wc_adm_access_t *adm_access;
> const char *src_uuid = NULL, *dst_uuid = NULL;
> + const char *src_url;
> svn_boolean_t same_repositories;
> svn_opt_revision_t revision;
>
> + if (! svn_path_is_url (src_path_or_url))
> + {
> + /* We can convert the working copy path to a URL based on the
> + entries file. */
> + const svn_wc_entry_t *entry;
> + SVN_ERR (svn_wc_adm_probe_open (&adm_access, NULL, src_path_or_url,
> + FALSE, FALSE, pool));
> + SVN_ERR (svn_wc_entry (&entry, src_path_or_url, adm_access, FALSE,
> + pool));
> + SVN_ERR (svn_wc_adm_close (adm_access));
> +
> + if (! entry)
> + return svn_error_createf
> + (SVN_ERR_UNVERSIONED_RESOURCE, NULL,
> + "'%s' is not under version control", src_path_or_url);
> +
> + src_url = entry->url;
> + }
> + else
> + src_url = src_path_or_url;
> +
> /* Get the RA vtable that matches URL. */
> SVN_ERR (svn_ra_init_ra_libs (&ra_baton, pool));
> SVN_ERR (svn_ra_get_ra_library (&ra_lib, ra_baton, src_url, pool));
> @@ -764,7 +785,8 @@
> revision.kind = svn_opt_revision_head;
>
> SVN_ERR (svn_client__get_revision_number
> - (&src_revnum, ra_lib, sess, &revision, NULL, pool));
> + (&src_revnum, ra_lib, sess, &revision,
> + src_url == src_path_or_url ? NULL : src_path_or_url, pool));
>
> /* Verify that SRC_URL exists in the repository. */
> SVN_ERR (ra_lib->check_path (sess, "", src_revnum, &src_kind, pool));
> @@ -977,13 +999,13 @@
> svn_client_ctx_t *ctx,
> apr_pool_t *pool)
> {
> - svn_boolean_t src_is_url, dst_is_url;
> + svn_boolean_t src_use_repos, dst_use_repos;
>
> /* Are either of our paths URLs? */
> - src_is_url = svn_path_is_url (src_path);
> - dst_is_url = svn_path_is_url (dst_path);
> + src_use_repos = svn_path_is_url (src_path);
> + dst_use_repos = svn_path_is_url (dst_path);
>
> - if (!src_is_url && !dst_is_url
> + if (!src_use_repos && !dst_use_repos
> && svn_path_is_child (src_path, dst_path, pool))
> return svn_error_createf
> (SVN_ERR_UNSUPPORTED_FEATURE, NULL,
> @@ -992,7 +1014,7 @@
>
> if (is_move)
> {
> - if (src_is_url == dst_is_url)
> + if (src_use_repos == dst_use_repos)
> {
> if (strcmp (src_path, dst_path) == 0)
> return svn_error_createf
> @@ -1025,46 +1047,31 @@
> }
> else
> {
> - if (!src_is_url)
> + if (!src_use_repos)
> {
> if (src_revision->kind != svn_opt_revision_unspecified
> && src_revision->kind != svn_opt_revision_working)
> {
> - /* We can convert the working copy path to a URL based on the
> - entries file. */
> - svn_wc_adm_access_t *adm_access; /* ### FIXME local */
> - const svn_wc_entry_t *entry;
> - SVN_ERR (svn_wc_adm_probe_open (&adm_access, NULL, src_path,
> - FALSE, FALSE, pool));
> - SVN_ERR (svn_wc_entry (&entry, src_path, adm_access, FALSE,
> - pool));
> - SVN_ERR (svn_wc_adm_close (adm_access));
> -
> - if (! entry)
> - return svn_error_createf
> - (SVN_ERR_UNVERSIONED_RESOURCE, NULL,
> - "'%s' is not under version control", src_path);
> -
> - src_path = entry->url;
> - src_is_url = TRUE;
> + /* Go to the repository for the copy. */
> + src_use_repos = TRUE;
> }
> }
> }
>
> /* Now, call the right handler for the operation. */
> - if ((! src_is_url) && (! dst_is_url))
> + if ((! src_use_repos) && (! dst_use_repos))
> {
> SVN_ERR (wc_to_wc_copy (src_path, dst_path,
> is_move, force,
> ctx,
> pool));
> }
> - else if ((! src_is_url) && (dst_is_url))
> + else if ((! src_use_repos) && (dst_use_repos))
> {
> SVN_ERR (wc_to_repos_copy (commit_info, src_path, dst_path,
> ctx, pool));
> }
> - else if ((src_is_url) && (! dst_is_url))
> + else if ((src_use_repos) && (! dst_use_repos))
> {
> SVN_ERR (repos_to_wc_copy (src_path, src_revision,
> dst_path, ctx,
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
[PATCH] Issue 1643: Cannot copy -rBASE while in WC
Posted by John Szakmeister <jo...@szakmeister.net>.
On Monday 15 December 2003 19:05, John Szakmeister wrote:
> On Monday 15 December 2003 13:09, Francois Beausoleil wrote:
> > Filed as issue #1643:
> > http://subversion.tigris.org/issues/show_bug.cgi?id=1643
> >
> > I didn't know what subscomponent to use, so I put unknown.
>
> Thanks François! Hopefully I can work something up here in the next couple
> of days.
>
> -John
Well, I made a patch for this problem to at least get the command working.
However, it's not an ideal solution since it will go to the network and
contact the repository. I looked at making it go to the text-base, and it
turned out that was going to be a significant change. One that I would feel
uncomfortable committing while we're in Beta.
-John
Log:
Stop 'svn copy -rBASE wc_path1 wc_path2' from failing. This isn't the ideal
answer since it will contact the repository, but presented the least amount of
change given that we're on our way to 1.0.
* subversion/libsvn_client/copy.c
(repos_to_wc_copy): Updated this function to now take a WC path as a
parameter, to allow keywords like BASE, PREV, and COMMITTED to be resolved.
Renamed src_url parameter to src_path_or_url to reflect the change.
(setup_copy): Stop referring to parameters as being URLs. Instead, indicate
whether or not we want to go to the repository for the source or
destination. Also, stop resolving a source path to a URL in the repos->wc
case. Instead, let repos_to_wc_copy() resolve it, since it needs to wc path
to resolve the revision parameter correctly.
Re: Cannot copy -rBASE in WC ?
Posted by John Szakmeister <jo...@szakmeister.net>.
On Monday 15 December 2003 13:09, Francois Beausoleil wrote:
> Filed as issue #1643:
> http://subversion.tigris.org/issues/show_bug.cgi?id=1643
>
> I didn't know what subscomponent to use, so I put unknown.
Thanks François! Hopefully I can work something up here in the next couple of
days.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
Filed as issue #1643:
http://subversion.tigris.org/issues/show_bug.cgi?id=1643
I didn't know what subscomponent to use, so I put unknown.
Thanks,
François
On 15 Dec 2003 10:49:35 -0600, kfogel@collab.net said:
> "Francois Beausoleil" <fb...@users.sourceforge.net> writes:
> > Do you want me to file an issue ? Or wait a couple of days before doing
> > it ?
>
> I'd say file the issue, it's always good to have, even if a patch is
> already in progress.
>
> -K
>
>
>
> > On Sun, 14 Dec 2003 20:24:28 -0500, "John Szakmeister"
> > <jo...@szakmeister.net> said:
> > > On Sunday 14 December 2003 19:41, Francois Beausoleil wrote:
> > > > No, I didn't want to revert. I *really* wanted a copy of the file,
> > > > before local modifications. As I said, I ended up using HEAD, which
> > > > contacted the repository. Had BASE worked, the repository would not have
> > > > been contacted, if I understand BASE correctly.
> > >
> > > Looks like you found a bug. The problem is that the logic in
> > > svn_client_copy() is converting the src path to a URL to contact the
> > > repository if you aren't making a copy of WORKING. The problem is
> > > two-fold.
> > > First, it means that it will contact the repository to grab BASE.
> > > Second, it
> > > will fail because BASE only makes sense when the source is a WC path. In
> > > the
> > > process of converting to a URL, there was no check to see if it was BASE,
> > > or
> > > PREV and so the copy will fail.
> > >
> > > I'll see if I can generate a patch for this over the next couple of days.
> > >
> > > -John
> > >
> > Developer of Java Gui Builder
> > http://jgb.sourceforge.net/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
Developer of Java Gui Builder
http://jgb.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by Julian Foad <ju...@btopenworld.com>.
[sorry to "dev" people; I meant to send it to "users"]
Barry Scott wrote:
> The issue with cat -rBASE is very serious for me as it means I cannot
> diff when off-line. I don't want to use the svn diff I want to get my
> hands on both files and use my own diff tools.
>
> My work around is to reach into text_base and pull the BASE for there,
> nasty as it depends on svn not changing the structure in .svn. Waiting
> 10 to 30 seconds to get the file from Chicago to the u.k. is not usable.
Are you aware of "svn diff --diff-cmd=your-own-diff-tool FILE..." ? That probably does what you want.
- Julian
> At 16-12-2003 00:35, Julian Foad wrote:
>
>> Barry Scott wrote:
>>
>>> If this is a candidate to fix then can the bug with cat -rBASE get a fix
>>> as well for 1.0?
>>
>> Both of these issues ("copy -rBASE" and "cat -rBASE") are candidates
>> to fix, but they are problems of different degree. "copy -rBASE"
>> doesn't work at all. "cat -rBASE" does work, though it works
>> inefficiently because it contacts the repository. A fix for the
>> former might get into version 1.0 if it is simple and good, otherwise
>> it won't. There is a patch for the latter attached to its issue, but
>> it is not as clean and shared (with other commands such as "copy") as
>> I would like it to be, and is very unlikely to go into 1.0.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by Julian Foad <ju...@btopenworld.com>.
Barry Scott wrote:
> The issue with cat -rBASE is very serious for me as it means I cannot
> diff when off-line. I don't want to use the svn diff I want to get my
> hands on both files and use my own diff tools.
>
> My work around is to reach into text_base and pull the BASE for there,
> nasty as it depends on svn not changing the structure in .svn. Waiting
> 10 to 30 seconds to get the file from Chicago to the u.k. is not usable.
Are you aware of "svn diff --diff-cmd=your-own-diff-tool FILE..." ? That probably does what you want.
- Julian
> At 16-12-2003 00:35, Julian Foad wrote:
>
>> Barry Scott wrote:
>>
>>> If this is a candidate to fix then can the bug with cat -rBASE get a fix
>>> as well for 1.0?
>>
>> Both of these issues ("copy -rBASE" and "cat -rBASE") are candidates
>> to fix, but they are problems of different degree. "copy -rBASE"
>> doesn't work at all. "cat -rBASE" does work, though it works
>> inefficiently because it contacts the repository. A fix for the
>> former might get into version 1.0 if it is simple and good, otherwise
>> it won't. There is a patch for the latter attached to its issue, but
>> it is not as clean and shared (with other commands such as "copy") as
>> I would like it to be, and is very unlikely to go into 1.0.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by Julian Foad <ju...@btopenworld.com>.
Barry Scott wrote:
> If this is a candidate to fix then can the bug with cat -rBASE get a fix
> as well for 1.0?
Both of these issues ("copy -rBASE" and "cat -rBASE") are candidates to fix, but they are problems of different degree. "copy -rBASE" doesn't work at all. "cat -rBASE" does work, though it works inefficiently because it contacts the repository. A fix for the former might get into version 1.0 if it is simple and good, otherwise it won't. There is a patch for the latter attached to its issue, but it is not as clean and shared (with other commands such as "copy") as I would like it to be, and is very unlikely to go into 1.0.
- Julian
> At 15-12-2003 16:49, kfogel@collab.net wrote:
>
>> "Francois Beausoleil" <fb...@users.sourceforge.net> writes:
>> > Do you want me to file an issue ? Or wait a couple of days before doing
>> > it ?
>>
>> I'd say file the issue, it's always good to have, even if a patch is
>> already in progress.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by Barry Scott <ba...@barrys-emacs.org>.
If this is a candidate to fix then can the bug with cat -rBASE get a fix
as well for 1.0?
Barry
At 15-12-2003 16:49, kfogel@collab.net wrote:
>"Francois Beausoleil" <fb...@users.sourceforge.net> writes:
> > Do you want me to file an issue ? Or wait a couple of days before doing
> > it ?
>
>I'd say file the issue, it's always good to have, even if a patch is
>already in progress.
>
>-K
>
>
>
> > On Sun, 14 Dec 2003 20:24:28 -0500, "John Szakmeister"
> > <jo...@szakmeister.net> said:
> > > On Sunday 14 December 2003 19:41, Francois Beausoleil wrote:
> > > > No, I didn't want to revert. I *really* wanted a copy of the file,
> > > > before local modifications. As I said, I ended up using HEAD, which
> > > > contacted the repository. Had BASE worked, the repository would
> not have
> > > > been contacted, if I understand BASE correctly.
> > >
> > > Looks like you found a bug. The problem is that the logic in
> > > svn_client_copy() is converting the src path to a URL to contact the
> > > repository if you aren't making a copy of WORKING. The problem is
> > > two-fold.
> > > First, it means that it will contact the repository to grab BASE.
> > > Second, it
> > > will fail because BASE only makes sense when the source is a WC path. In
> > > the
> > > process of converting to a URL, there was no check to see if it was BASE,
> > > or
> > > PREV and so the copy will fail.
> > >
> > > I'll see if I can generate a patch for this over the next couple of days.
> > >
> > > -John
> > >
> > Developer of Java Gui Builder
> > http://jgb.sourceforge.net/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by kf...@collab.net.
"Francois Beausoleil" <fb...@users.sourceforge.net> writes:
> Do you want me to file an issue ? Or wait a couple of days before doing
> it ?
I'd say file the issue, it's always good to have, even if a patch is
already in progress.
-K
> On Sun, 14 Dec 2003 20:24:28 -0500, "John Szakmeister"
> <jo...@szakmeister.net> said:
> > On Sunday 14 December 2003 19:41, Francois Beausoleil wrote:
> > > No, I didn't want to revert. I *really* wanted a copy of the file,
> > > before local modifications. As I said, I ended up using HEAD, which
> > > contacted the repository. Had BASE worked, the repository would not have
> > > been contacted, if I understand BASE correctly.
> >
> > Looks like you found a bug. The problem is that the logic in
> > svn_client_copy() is converting the src path to a URL to contact the
> > repository if you aren't making a copy of WORKING. The problem is
> > two-fold.
> > First, it means that it will contact the repository to grab BASE.
> > Second, it
> > will fail because BASE only makes sense when the source is a WC path. In
> > the
> > process of converting to a URL, there was no check to see if it was BASE,
> > or
> > PREV and so the copy will fail.
> >
> > I'll see if I can generate a patch for this over the next couple of days.
> >
> > -John
> >
> Developer of Java Gui Builder
> http://jgb.sourceforge.net/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
Do you want me to file an issue ? Or wait a couple of days before doing
it ?
Thanks,
François
On Sun, 14 Dec 2003 20:24:28 -0500, "John Szakmeister"
<jo...@szakmeister.net> said:
> On Sunday 14 December 2003 19:41, Francois Beausoleil wrote:
> > No, I didn't want to revert. I *really* wanted a copy of the file,
> > before local modifications. As I said, I ended up using HEAD, which
> > contacted the repository. Had BASE worked, the repository would not have
> > been contacted, if I understand BASE correctly.
>
> Looks like you found a bug. The problem is that the logic in
> svn_client_copy() is converting the src path to a URL to contact the
> repository if you aren't making a copy of WORKING. The problem is
> two-fold.
> First, it means that it will contact the repository to grab BASE.
> Second, it
> will fail because BASE only makes sense when the source is a WC path. In
> the
> process of converting to a URL, there was no check to see if it was BASE,
> or
> PREV and so the copy will fail.
>
> I'll see if I can generate a patch for this over the next couple of days.
>
> -John
>
Developer of Java Gui Builder
http://jgb.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by John Szakmeister <jo...@szakmeister.net>.
On Sunday 14 December 2003 19:41, Francois Beausoleil wrote:
> No, I didn't want to revert. I *really* wanted a copy of the file,
> before local modifications. As I said, I ended up using HEAD, which
> contacted the repository. Had BASE worked, the repository would not have
> been contacted, if I understand BASE correctly.
Looks like you found a bug. The problem is that the logic in
svn_client_copy() is converting the src path to a URL to contact the
repository if you aren't making a copy of WORKING. The problem is two-fold.
First, it means that it will contact the repository to grab BASE. Second, it
will fail because BASE only makes sense when the source is a WC path. In the
process of converting to a URL, there was no check to see if it was BASE, or
PREV and so the copy will fail.
I'll see if I can generate a patch for this over the next couple of days.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
No, I didn't want to revert. I *really* wanted a copy of the file,
before local modifications. As I said, I ended up using HEAD, which
contacted the repository. Had BASE worked, the repository would not have
been contacted, if I understand BASE correctly.
Thanks,
François
On Sun, 14 Dec 2003 20:06:02 +0000, "Barry Scott"
<ba...@barrys-emacs.org> said:
> try svn revert to take a modified file back to the base.
>
> Barry
>
>
> At 14-12-2003 19:14, Francois Beausoleil wrote:
> >Hi,
> >
> >I was inside a WC, and tried copying a file from BASE (WC is at HEAD).
> >The file in question was modified in the WC.
> >
> >Here's what I did, and SVN's answer:
> >K:\...\account>svn copy -rbase AccountTest.java AccountTrialTest.java
> >svn: A path under version control is needed for this operation
> >
> >Then, I copied HEAD, and all was fine:
> >K:\...\account>svn copy -rhead AccountTest.java AccountTrialTest.java
> >
> >Is this a bug or am I misunderstanding what BASE means ?
> >
> >K:\...\account>svn --version
> >svn, version 0.34.0 (r7859)
> > compiled Dec 4 2003, 08:08:28
> >
> >Thanks !
> >François
> >Developer of Java Gui Builder
> >http://jgb.sourceforge.net/
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> >For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Developer of Java Gui Builder
http://jgb.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot copy -rBASE in WC ?
Posted by Barry Scott <ba...@barrys-emacs.org>.
try svn revert to take a modified file back to the base.
Barry
At 14-12-2003 19:14, Francois Beausoleil wrote:
>Hi,
>
>I was inside a WC, and tried copying a file from BASE (WC is at HEAD).
>The file in question was modified in the WC.
>
>Here's what I did, and SVN's answer:
>K:\...\account>svn copy -rbase AccountTest.java AccountTrialTest.java
>svn: A path under version control is needed for this operation
>
>Then, I copied HEAD, and all was fine:
>K:\...\account>svn copy -rhead AccountTest.java AccountTrialTest.java
>
>Is this a bug or am I misunderstanding what BASE means ?
>
>K:\...\account>svn --version
>svn, version 0.34.0 (r7859)
> compiled Dec 4 2003, 08:08:28
>
>Thanks !
>François
>Developer of Java Gui Builder
>http://jgb.sourceforge.net/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org