You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Joey Hess <jo...@kitenet.net> on 2003/09/09 20:24:22 UTC

merge weirdness item in WC not under revision control

Merging a branch back to trunk:

joey@dragon:~/src/mooix/mood>svn merge -r 1705:HEAD svn+ssh://svn.mooix.net/home/svn/mooix/branches/moox_embedding_rewrite_branch/mood 
svn: Can't find an entry
svn: Can't merge changes into 'mood':it's not under revision control.

This threw me for a while, until I realized that in the WC directory was a
"mood" file (the binary produced during my last build), that was of
course not under revision control. I deleted it and the merge proceeded
as expected.

Is there some reason why subverson cared that I had a ./mood in the WC,
but did not care about mood.o, etc, that are also in the WC? Perhaps it
got confused since "mood" is also the name of the branch, and of the
directory I was doing the merge in.

Using subversion 0.26.0, still.

-- 
see shy jo

Re: merge weirdness item in WC not under revision control

Posted by Joey Hess <jo...@kitenet.net>.
Philip Martin wrote:
> Changes can be merged using
> 
>   $ svn merge -rN:M http://host/repo/foo foo
> 
> It's a deliberate feature that the target, foo above, can be omitted
> if the last component of the URL matches the target, allowing
> 
>   $ svn merge -rN:M http://host/repo/foo
> 
> to merge changes into foo rather than the current directory.
> 
> For some reason this feature only applies if the target is a file and
> not a directory.  The fact that an unversioned file triggers this
> behaviour is probably a bug.  (I don't like this sort of feature, so I
> not really the best person to determine how it should work as I'd just
> remove it.)
  
  WCPATH is the working copy path that will receive the changes.
  If WCPATH is omitted, a default value of '.' is assumed, unless
  the sources have identical basenames that match a file within '.':
  in which case, the differences will be applied to that file.

That almost fits, but I see the same behavior if I use the form with an
explicit WC directory -- note the trailing dot:

joey@dragon:~/tmp/mood.bak>svn merge -r1705:1746 svn+ssh://svn.mooix.net/home/svn/mooix/branches/moox_embedding_rewrite_branch/mood .
svn: Can't find an entry
svn: Can't merge changes into 'mood':it's not under revision control.
zsh: exit 1     svn merge -r1705:1746  .

It's apparently doing the same thing it would if I left off the trailing
dot:

joey@dragon:~/tmp/mood.bak>svn merge -r1705:1746 svn+ssh://svn.mooix.net/home/svn/mooix/branches/moox_embedding_rewrite_branch/mood  
svn: Can't find an entry
svn: Can't merge changes into 'mood':it's not under revision control.
zsh: exit 1     svn merge -r1705:1746 

If I go up a directory, and tell it to use the mood.bak directory, it
does work:

joey@dragon:~/tmp>svn merge -r1705:1746 svn+ssh://svn.mooix.net/home/svn/mooix/branches/moox_embedding_rewrite_branch/mood mood.bak
U  mood.bak/mood.c
U  mood.bak/perl.c

-- 
see shy jo

Re: merge weirdness item in WC not under revision control

Posted by Philip Martin <ph...@codematters.co.uk>.
Joey Hess <jo...@kitenet.net> writes:

> Ben Collins-Sussman wrote:
>> 'svn merge' means, "please apply this patch to my working copy".
>> 
>> The patch you specified involves changing a file called 'mood'.  But
>> your working copy has no such file -- at least, not under version
>> control.  So the patch isn't going to apply cleanly, no matter what
>> you do.  If you had been running svn 0.29, it probably would have just
>> said
>> 
>>    skipping file 'mood'
>> 
>> ...and continued on.  But you're using an older version, so it was a
>> bit more cranky.
>
> Makes no sense to me, mood/mood is not and has never been in my
> repository. It's a svn:ignored binary file.

Changes can be merged using

  $ svn merge -rN:M http://host/repo/foo foo

It's a deliberate feature that the target, foo above, can be omitted
if the last component of the URL matches the target, allowing

  $ svn merge -rN:M http://host/repo/foo

to merge changes into foo rather than the current directory.

For some reason this feature only applies if the target is a file and
not a directory.  The fact that an unversioned file triggers this
behaviour is probably a bug.  (I don't like this sort of feature, so I
not really the best person to determine how it should work as I'd just
remove it.)

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: merge weirdness item in WC not under revision control

Posted by Joey Hess <jo...@kitenet.net>.
Ben Collins-Sussman wrote:
> Joey Hess <jo...@kitenet.net> writes:
> 
> > Makes no sense to me, mood/mood is not and has never been in my
> > repository. It's a svn:ignored binary file.
> 
> Well, you're comparing two URLs...  what does 'svn diff' say when you
> compare the same two urls?

A lot of things, but certianly nothing about an ignored file named mood
that is not in the repository.

joey@dragon:~/tmp/mood.bak>svn diff -r1705:1746 svn+ssh://svn.mooix.net/home/svn/mooix/branches/moox_embedding_rewrite_branch/mood | diffstat
 Makefile  |    2 -
 mood.c    |   28 ++++++++++++++++------
 mood.h    |   22 ++++++++++++++---
 noembed.c |   26 ++++++++++++++++++++
 perl.c    |   11 ++++----
 proxy.c   |   77 ++++++++++++++++++++------------------------------------------
 python.c  |   37 ++++++++++++++++-------------
 ruby.c    |   32 ++++++++++++++++---------
 8 files changed, 138 insertions(+), 97 deletions(-)

-- 
see shy jo

Re: merge weirdness item in WC not under revision control

Posted by Ben Collins-Sussman <su...@collab.net>.
Joey Hess <jo...@kitenet.net> writes:

> Makes no sense to me, mood/mood is not and has never been in my
> repository. It's a svn:ignored binary file.

Well, you're comparing two URLs...  what does 'svn diff' say when you
compare the same two urls?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: merge weirdness item in WC not under revision control

Posted by Joey Hess <jo...@kitenet.net>.
Ben Collins-Sussman wrote:
> 'svn merge' means, "please apply this patch to my working copy".
> 
> The patch you specified involves changing a file called 'mood'.  But
> your working copy has no such file -- at least, not under version
> control.  So the patch isn't going to apply cleanly, no matter what
> you do.  If you had been running svn 0.29, it probably would have just
> said
> 
>    skipping file 'mood'
> 
> ...and continued on.  But you're using an older version, so it was a
> bit more cranky.

Makes no sense to me, mood/mood is not and has never been in my
repository. It's a svn:ignored binary file.

-- 
see shy jo

Re: merge weirdness item in WC not under revision control

Posted by Ben Collins-Sussman <su...@collab.net>.
Joey Hess <jo...@kitenet.net> writes:

> Merging a branch back to trunk:
> 
> joey@dragon:~/src/mooix/mood>svn merge -r 1705:HEAD svn+ssh://svn.mooix.net/home/svn/mooix/branches/moox_embedding_rewrite_branch/mood 
> svn: Can't find an entry
> svn: Can't merge changes into 'mood':it's not under revision control.
> 
> This threw me for a while, until I realized that in the WC directory was a
> "mood" file (the binary produced during my last build), that was of
> course not under revision control. I deleted it and the merge proceeded
> as expected.
> 
> Is there some reason why subverson cared that I had a ./mood in the WC,
> but did not care about mood.o, etc, that are also in the WC? Perhaps it
> got confused since "mood" is also the name of the branch, and of the
> directory I was doing the merge in.

'svn merge' means, "please apply this patch to my working copy".

The patch you specified involves changing a file called 'mood'.  But
your working copy has no such file -- at least, not under version
control.  So the patch isn't going to apply cleanly, no matter what
you do.  If you had been running svn 0.29, it probably would have just
said

   skipping file 'mood'

...and continued on.  But you're using an older version, so it was a
bit more cranky.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: merge weirdness item in WC not under revision control

Posted by e....@gmx.net.
Joey,

Yes, it does. Look at a directory named ~/.subversion/ there is 
a config file that may specify a global-ignores list. If none is
specified, the list mentioned there is used.
On my system it contains '*.o'

bye,


Erik.


> Merging a branch back to trunk:
> 
> joey@dragon:~/src/mooix/mood>svn merge -r 1705:HEAD
> svn+ssh://svn.mooix.net
> /home/svn/mooix/branches/moox_embedding_rewrite_branch/mood 
> svn: Can't find an entry
> svn: Can't merge changes into 'mood':it's not under revision control.
> 
> This threw me for a while, until I realized that in the WC directory was a
> "mood" file (the binary produced during my last build), that was of
> course not under revision control. I deleted it and the merge proceeded
> as expected.
> 
> Is there some reason why subverson cared that I had a ./mood in the WC,
> but did not care about mood.o, etc, that are also in the WC? Perhaps it
> got confused since "mood" is also the name of the branch, and of the
> directory I was doing the merge in.
> 
> Using subversion 0.26.0, still.
> 
> -- 
> see shy jo
> 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org