On Jul 29, 2008, at 15:38, Erik Hemdal wrote:
> Keith Moore wrote:
>
>> when you do a commit on the main working copy it doesn't
>> traverse into the externals directory's, i.e. it doesn't
>> commit any changes.
>
> I tested this and you are completely correct.  But I discovered  
> that if you
> commit specifically in the directory that you "pulled", that you  
> can still
> commit changes.  If my svn:externals property is set up to pull in  
> a tag
> from another repository, then this will let me modify a tag.  I  
> found this
> to be true even if I have a pre-commit hook in the external  
> repository.
>
> I set a specific rev in the external definition that I wanted.  If  
> I pulled
> again or did an svn update, then I found I can always get back to  
> the right
> revision for the external code.  But the underlying tag in the  
> expternal
> repository was still modified.
If it was possible for you to modify the external repository's tag,  
then the remote repository did not have a pre-commit hook that  
prevented you from modifying a tag.
> We use TortoiseSVN, and it will warn you if it thinks you're trying to
> commit to a tag.  But I found you can go past that warning dialog  
> and go
> change your tag.  I didn't expect that to happen.
I didn't know TortoiseSVN provided such a warning. Certainly not all  
clients do so, so a client-side warning is not an effective way to  
prevent something from happening in a repository. Only a pre-commit  
hook can assure that.
> I don't know if this is caused by a mistake I made, if my pre- 
> commit script
> isn't robust enough, or if this is just the way that externals work.
At this point it doesn't have much to do with externals. Setting an  
externals definition causes a new unrelated working copy to be  
checked out. That separate working copy works exactly as it would if  
you manually checked out from the external location.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-30 04:50:14 CEST