You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stephen Downs <st...@plasticbrain.com> on 2004/11/28 18:59:16 UTC

Export without last-commit timestamp

Hi I'm new to the list and this is my first puzzler: I'd like to use 
Subversion export without imposing a last-commit timestamp on all 
exported files. Is this possible?

I need to maintain modification dates on my files and export a clean 
directory of the project without the .svn data for use in builds. The 
files end up in an InstallShield updater-style project which relies on 
file modification dates to determine if files need to be installed or 
not. Using svn export, all files are marked with last-commit timestamps 
which are later than the modification date of the files, erroneously 
resulting in every file being replaced by the installer in the case 
where a user has a previous version installed. Instead of using svn 
export I've been duplicating my working copy, then removing each 
instance of the .svn folder by hand. I'm going to write a script to do 
this, unless there is another command or way of doing what I want.

Any ideas would be appreciated. Perhaps this falls under a change 
request to add a switch to svn export (i.e. -dont-use-commit-times).

thanks,
Steve


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

Re: Export without last-commit timestamp

Posted by Ben Collins-Sussman <su...@collab.net>.
On Nov 29, 2004, at 4:30 AM, Stephen Downs wrote:

> Thanks for the clarification and reply Mark.
>
> I don't fully grasp the timestamp / date modification handling in 
> Subversion, but it does seem that I'm not asking much. Normal svn 
> checkout respects the last modified date of my files. I just want an 
> svn export option to exhibit the same behavior, not rely on another 
> stored property. I suppose I should have written this as 
> "-no-timestamp."
>
>

Here's your explanation:

   * The checkout, update, switch, and revert commands all set a 
working-file's timestamp to "now" whenever a file is created or 
changed.

   * This behavior can be tweaked to use last-commit-timestamp instead, 
by altering the option in the run-time 'config' file.

   * The export command always creates files with the 
last-commit-timestamp.  AFAIK, there's no way to change it to use "now" 
time.

Hope this clarifies, sorry for misleading earlier.


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

Re: Export without last-commit timestamp

Posted by Max Bowsher <ma...@ukf.net>.
Stephen Downs wrote:
> Thanks for the clarification and reply Mark.
> 
> I don't fully grasp the timestamp / date modification handling in
> Subversion, but it does seem that I'm not asking much. Normal svn
> checkout respects the last modified date of my files. I just want an
> svn export option to exhibit the same behavior, not rely on another
> stored property. I suppose I should have written this as
> "-no-timestamp."
> 
> One for the change request pile.

I'm not sure exactly what you are asking for.

Here, when I run "svn checkout", the files get the current time.

Max.


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

Re: Export without last-commit timestamp

Posted by Stephen Downs <st...@plasticbrain.com>.
Thanks for the clarification and reply Mark.

I don't fully grasp the timestamp / date modification handling in 
Subversion, but it does seem that I'm not asking much. Normal svn 
checkout respects the last modified date of my files. I just want an 
svn export option to exhibit the same behavior, not rely on another 
stored property. I suppose I should have written this as 
"-no-timestamp."

One for the change request pile.

Steve



On Nov 28, 2004, at 4:53 PM, Mark Phippard wrote:

> Ben Collins-Sussman <su...@collab.net> wrote on 11/28/2004 05:57:02 
> PM:
>
>>
>> On Nov 28, 2004, at 12:59 PM, Stephen Downs wrote:
>>
>>> Hi I'm new to the list and this is my first puzzler: I'd like to use
>>> Subversion export without imposing a last-commit timestamp on all
>>> exported files. Is this possible?
>>>
>>
>> Sure, temporarily set "use-commit-times = no" in your run-time 
>> 'config'
>> file.  It's off by default, so you must have turned it on at some 
>> point
>> already!
>
> No, that would give him the date/time of the export, not what he wants.
> What he seems to want is the file modification time to be store in
> Subversion on a commit,  and have export set that time on the file 
> after
> it exports it.  There are some patches floating around for this, but
> otherwise, the answer is that Subversion does not do it.
>
> Mark
>


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

Re: Export without last-commit timestamp

Posted by Mark Phippard <Ma...@softlanding.com>.
Ben Collins-Sussman <su...@collab.net> wrote on 11/28/2004 05:57:02 PM:

> 
> On Nov 28, 2004, at 12:59 PM, Stephen Downs wrote:
> 
> > Hi I'm new to the list and this is my first puzzler: I'd like to use 
> > Subversion export without imposing a last-commit timestamp on all 
> > exported files. Is this possible?
> >
> 
> Sure, temporarily set "use-commit-times = no" in your run-time 'config' 
> file.  It's off by default, so you must have turned it on at some point 
> already!

No, that would give him the date/time of the export, not what he wants. 
What he seems to want is the file modification time to be store in 
Subversion on a commit,  and have export set that time on the file after 
it exports it.  There are some patches floating around for this, but 
otherwise, the answer is that Subversion does not do it.

Mark


_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

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

Re: Export without last-commit timestamp

Posted by Ben Collins-Sussman <su...@collab.net>.
On Nov 28, 2004, at 12:59 PM, Stephen Downs wrote:

> Hi I'm new to the list and this is my first puzzler: I'd like to use 
> Subversion export without imposing a last-commit timestamp on all 
> exported files. Is this possible?
>

Sure, temporarily set "use-commit-times = no" in your run-time 'config' 
file.  It's off by default, so you must have turned it on at some point 
already!



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