You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kevin Hung <cy...@gmail.com> on 2006/12/29 16:56:09 UTC

Bug in svnversion?

This seems like a bug in svnversion.

I have the following directory and file structure.

root -- d1 -- f1.txt

root -- d2 - f2.txt

d1 and d2 are directories. f1 and f2 are files.

d2 is actually an external.

If I make changes to f2.txt and run "svnversion ." at the root directory, I
got a revision number without the letter M. I expect the letter M since I
make changes to f2.txt.

Re: Bug in svnversion?

Posted by "B. Smith-Mannschott" <be...@gmail.com>.
On Dec 29, 2006, at 17:56, Kevin Hung wrote:

> This seems like a bug in svnversion.
>
> I have the following directory and file structure.
>
> root -- d1 -- f1.txt
>
> root -- d2 - f2.txt
>
> d1 and d2 are directories. f1 and f2 are files.
>
> d2 is actually an external.
>
> If I make changes to f2.txt and run "svnversion ." at the root  
> directory, I got a revision number without the letter M. I expect  
> the letter M since I make changes to f2.txt.
>

This behavior doesn't surprise me in light of what the svnbook says  
about disjoint working copies and svn:externals:

<http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html>

[...] The working copies created via the externals definition support  
are still disconnected from the primary working copy (on whose  
versioned directories the svn:externals property was actually set).  
And Subversion still only truly operates on non-disjoint working  
copies. So, for example, if you want to commit changes that you've  
made in one or more of those external working copies, you must run  
svn commit explicitly on those working copies—committing on the  
primary working copy will not recurse into any external ones.


If this *is* intended behavior, perhaps a mention of this in the  
svnbook's section on svnversion would be appropriate.


Out of curiosity, I looked up the documentation of  
svn_wc_revision_status(...) but there's nothing there that pointed  
out the bit about not crossing svn:externals boundaries.  Presumably,  
this is because it's a natural consequence of svn's design.

// ben


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


Re: Bug in svnversion?

Posted by Matt Sickler <cr...@gmail.com>.
Actually, I take that back.  B. Smith nailed it

On 12/29/06, Matt Sickler <cr...@gmail.com> wrote:
>
> I think you want 'svn status .'
>
> On 12/29/06, Kevin Hung <cy...@gmail.com> wrote:
> >
> > d2 is an svn:external, i.e. d2 is somewhere in the same repository.
> >
> > After changing f2.txt, I run "svnversion ." at the root directory. I
> > expect svnversion to tell me that there is modification but it does not. I
> > did not run svn commit.
> >
> >
> >
> > On 12/29/06, Ramanathan Muthaiah < rus.cahimb@gmail.com> wrote:
> > >
> > > > I have the following directory and file structure.
> > > >
> > > > root -- d1 -- f1.txt
> > > >
> > > > root -- d2 - f2.txt
> > > >
> > > > d1 and d2 are directories. f1 and f2 are files.
> > > >
> > > > d2 is actually an external.
> > > >
> > > > If I make changes to f2.txt and run "svnversion ." at the root
> > > directory, I
> > > > got a revision number without the letter M. I expect the letter M
> > > since I
> > > > make changes to f2.txt.
> > > Could you pls. provide more details ?
> > >
> > > What do you mean "d2 is external" ? is it external to Subversion i.e
> > > not yet part of repository ?
> > >
> > > After changing f2.txt, did you run svnvresion or svn commit ?
> > >
> > > /Ram
> > >
> >
> >
>

Re: Bug in svnversion?

Posted by Matt Sickler <cr...@gmail.com>.
I think you want 'svn status .'

On 12/29/06, Kevin Hung <cy...@gmail.com> wrote:
>
> d2 is an svn:external, i.e. d2 is somewhere in the same repository.
>
> After changing f2.txt, I run "svnversion ." at the root directory. I
> expect svnversion to tell me that there is modification but it does not. I
> did not run svn commit.
>
>
>
> On 12/29/06, Ramanathan Muthaiah <ru...@gmail.com> wrote:
> >
> > > I have the following directory and file structure.
> > >
> > > root -- d1 -- f1.txt
> > >
> > > root -- d2 - f2.txt
> > >
> > > d1 and d2 are directories. f1 and f2 are files.
> > >
> > > d2 is actually an external.
> > >
> > > If I make changes to f2.txt and run "svnversion ." at the root
> > directory, I
> > > got a revision number without the letter M. I expect the letter M
> > since I
> > > make changes to f2.txt.
> > Could you pls. provide more details ?
> >
> > What do you mean "d2 is external" ? is it external to Subversion i.e
> > not yet part of repository ?
> >
> > After changing f2.txt, did you run svnvresion or svn commit ?
> >
> > /Ram
> >
>
>

Re: Bug in svnversion?

Posted by Kevin Hung <cy...@gmail.com>.
d2 is an svn:external, i.e. d2 is somewhere in the same repository.

After changing f2.txt, I run "svnversion ." at the root directory. I expect
svnversion to tell me that there is modification but it does not. I did not
run svn commit.



On 12/29/06, Ramanathan Muthaiah <ru...@gmail.com> wrote:
>
> > I have the following directory and file structure.
> >
> > root -- d1 -- f1.txt
> >
> > root -- d2 - f2.txt
> >
> > d1 and d2 are directories. f1 and f2 are files.
> >
> > d2 is actually an external.
> >
> > If I make changes to f2.txt and run "svnversion ." at the root
> directory, I
> > got a revision number without the letter M. I expect the letter M since
> I
> > make changes to f2.txt.
> Could you pls. provide more details ?
>
> What do you mean "d2 is external" ? is it external to Subversion i.e
> not yet part of repository ?
>
> After changing f2.txt, did you run svnvresion or svn commit ?
>
> /Ram
>

Re: Bug in svnversion?

Posted by Ramanathan Muthaiah <ru...@gmail.com>.
> I have the following directory and file structure.
>
> root -- d1 -- f1.txt
>
> root -- d2 - f2.txt
>
> d1 and d2 are directories. f1 and f2 are files.
>
> d2 is actually an external.
>
> If I make changes to f2.txt and run "svnversion ." at the root directory, I
> got a revision number without the letter M. I expect the letter M since I
> make changes to f2.txt.
Could you pls. provide more details ?

What do you mean "d2 is external" ? is it external to Subversion i.e
not yet part of repository ?

After changing f2.txt, did you run svnvresion or svn commit ?

/Ram

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