You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Crast, Nicholas" <Ni...@saabsensis.com> on 2016/01/20 22:05:51 UTC

Modifying SVN Externals with Specific Revision

Hi all,

I have a folder with the svn:externals property set, grabbing an external folder from a different part of the repository:
-r6367 ../common/testproc proc1/common

If I go into proc1/common and edit a file in there, svn stat shows the file as modified, but it seems that since I specified a specific revision, I am unable to commit the modified external file. It is essentially ignored by svn commit.

This is, in fact, the behavior I want. I just want to know if it's guaranteed that modifications to external directories with a specific revisions will not be committed.

Can someone verify this? Cannot find this specific case anywhere.

-Nick

----------------------------------------
Nick Crast
Software Engineer
Saab Sensis Corporation
Phone: 315-445-5703
Email: Nicholas.Crast@saabsensis.com<ma...@saabsensis.com>


This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately.

Re: Modifying SVN Externals with Specific Revision

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Crast, Nicholas wrote on Mon, Jan 25, 2016 at 14:16:52 +0000:
> For anyone else in the future, there is more information here:
> https://people.apache.org/~brane/svndocs/capi/group__Commit.html

Not quite.  That's trunk's documentation; promises made there are not
binding.  The released docs are these: https://subversion.apache.org/docs/#api

Cheers,

Daniel

RE: Modifying SVN Externals with Specific Revision

Posted by "Crast, Nicholas" <Ni...@saabsensis.com>.
Thanks Daniel!

Exactly the information I was looking for. 

For anyone else in the future, there is more information here:
https://people.apache.org/~brane/svndocs/capi/group__Commit.html

-Nick

----------------------------------------
Nick Crast
Software Engineer
Saab Sensis Corporation
Phone: 315-445-5703
Email: Nicholas.Crast@saabsensis.com


-----Original Message-----
From: Daniel Shahaf [mailto:d.s@daniel.shahaf.name] 
Sent: Saturday, January 23, 2016 7:00 PM
To: Crast, Nicholas
Cc: users@subversion.apache.org
Subject: Re: Modifying SVN Externals with Specific Revision

Crast, Nicholas wrote on Wed, Jan 20, 2016 at 21:05:51 +0000:
> This is, in fact, the behavior I want. I just want to know if it's 
> guaranteed that modifications to external directories with a specific 
> revisions will not be committed.

It is an explicit API promise of svn_client_commit6():

 * If @a include_file_externals and/or @a include_dir_externals are #TRUE,
 * also commit all file and/or dir externals (respectively) that are reached
 * by recursion, except for those externals which:
 *     - have a fixed revision, or
 *     - come from a different repository root URL (dir externals).
 * These flags affect only recursion; externals that directly appear in @a
 * targets are always included in the commit.

Cheers,

Daniel
-
This message is intended only for the addressee and may contain information that is company confidential or privileged.  Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately. 
-          

Re: Modifying SVN Externals with Specific Revision

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Crast, Nicholas wrote on Wed, Jan 20, 2016 at 21:05:51 +0000:
> This is, in fact, the behavior I want. I just want to know if it's
> guaranteed that modifications to external directories with a specific
> revisions will not be committed.

It is an explicit API promise of svn_client_commit6():

 * If @a include_file_externals and/or @a include_dir_externals are #TRUE,
 * also commit all file and/or dir externals (respectively) that are reached
 * by recursion, except for those externals which:
 *     - have a fixed revision, or
 *     - come from a different repository root URL (dir externals).
 * These flags affect only recursion; externals that directly appear in @a
 * targets are always included in the commit.

Cheers,

Daniel