You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Victoria Muntean <vi...@gmail.com> on 2009/01/21 14:58:03 UTC

mtimes at import

'svn import' ignores mtimes of files, and sets 'Last Changed Date' of
all imported files to current time.
In one specific import, I'd like to have ''Last Changed Date' to be set to
file's mtime.
Is there import option to do it, or any way to modify backward the
''Last Changed Date' in the repo, after import.

VM

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1041274

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: mtimes at import

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 21, 2009, at 08:58, Victoria Muntean wrote:

> 'svn import' ignores mtimes of files, and sets 'Last Changed Date' of
> all imported files to current time.
> In one specific import, I'd like to have ''Last Changed Date' to be  
> set to
> file's mtime.
> Is there import option to do it, or any way to modify backward the
> ''Last Changed Date' in the repo, after import.

Sorry, there is no way to preserve that information in standard  
Subversion.

There has been work done on this front in the past, though it was  
never incorporated into Subversion. This is the open ticket:

http://subversion.tigris.org/issues/show_bug.cgi?id=1256

You may be in luck: the patch there was just updated a week ago, so  
it's fresh and might work for you, if you wanted to build a custom  
version of Subversion.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1042951

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: mtimes at import

Posted by "Bolstridge, Andrew" <an...@intergraph.com>.
> -----Original Message-----
> From: Victoria Muntean [mailto:vikimun@gmail.com]
> Sent: Wednesday, January 21, 2009 3:32 PM
> To: Bob Archer
> Cc: users@subversion.tigris.org
> Subject: Re: mtimes at import
> 
> On Wed, Jan 21, 2009 at 5:29 PM, Bob Archer <Bo...@amsi.com>
> wrote:
> > So, then why don't you just check out the top level folder. Delete
> the
> > files then do a fully recursive update?
> 
> I am talking about 'svn import' operation, Bob.
> Populating the empty repo right after 'svnadmin create'.
>

If you only want a single project/file updated, then set a blank
pre-commit hook, and manually update the filetime revision property.

I doubt there's a better way to do it besides logging it as a bug - I
should imagine the 'use commit time' setting should apply across all
commands equally.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1042988

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: mtimes at import

Posted by Konstantin Kolinko <kn...@gmail.com>.
2009/1/21 Victoria Muntean <vi...@gmail.com>:
> On Wed, Jan 21, 2009 at 5:29 PM, Bob Archer <Bo...@amsi.com> wrote:
>> So, then why don't you just check out the top level folder. Delete the
>> files then do a fully recursive update?
>
> I am talking about 'svn import' operation, Bob.
> Populating the empty repo right after 'svnadmin create'.
>

Look into the archives of this or dev list for the thread entitled
"Subversion Problem - How to save file modify time",
this one:
http://thread.gmane.org/gmane.comp.version-control.subversion.user/79239/


Best regards,
Konstantin Kolinko

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1041645

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: mtimes at import

Posted by Victoria Muntean <vi...@gmail.com>.
On Wed, Jan 21, 2009 at 5:29 PM, Bob Archer <Bo...@amsi.com> wrote:
> So, then why don't you just check out the top level folder. Delete the
> files then do a fully recursive update?

I am talking about 'svn import' operation, Bob.
Populating the empty repo right after 'svnadmin create'.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1041329

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: mtimes at import

Posted by Bob Archer <Bo...@amsi.com>.
So, then why don't you just check out the top level folder. Delete the
files then do a fully recursive update?

BOb


> -----Original Message-----
> From: Victoria Muntean [mailto:vikimun@gmail.com]
> Sent: Wednesday, January 21, 2009 10:22 AM
> To: Bob Archer
> Cc: users@subversion.tigris.org
> Subject: Re: mtimes at import
> 
> On Wed, Jan 21, 2009 at 5:11 PM, Bob Archer <Bo...@amsi.com>
wrote:
> >> Is there import option to do it, or any way to modify backward the
> >> ''Last Changed Date' in the repo, after import.
> >
> > Does use-commit-times in the client configuration not work for you?
> >
> >
http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.advanced.confarea.o
> > pts.config
> 
> No, it doesn't. "use-commit-times" doesn't affect 'svn import'. It
affects
> checkout, update, switch, and revert; but not import.
> 
> VM
> 
> ------------------------------------------------------
>
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageI
d=
> 1041311
> 
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe@subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1041319

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: mtimes at import

Posted by Victoria Muntean <vi...@gmail.com>.
On Wed, Jan 21, 2009 at 5:11 PM, Bob Archer <Bo...@amsi.com> wrote:
>> Is there import option to do it, or any way to modify backward the
>> ''Last Changed Date' in the repo, after import.
>
> Does use-commit-times in the client configuration not work for you?
>
> http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.advanced.confarea.o
> pts.config

No, it doesn't. "use-commit-times" doesn't affect 'svn import'. It affects
checkout, update, switch, and revert; but not import.

VM

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1041311

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: mtimes at import

Posted by Bob Archer <Bo...@amsi.com>.
> Is there import option to do it, or any way to modify backward the
> ''Last Changed Date' in the repo, after import.

Does use-commit-times in the client configuration not work for you?

http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.advanced.confarea.o
pts.config


BOb

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1041287

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: mtimes at import

Posted by Oliver Betz <li...@gmx.net>.
Victoria Muntean wrote:

[...]

>Ah, if it's not per-file, it doesn't help me.
>I'll try user-defined property.

did you consider to import each file as a separate revision and set
the commit time to the mtime of the file?

I posted a crude Perl script doing this, it should be in the archives
(svn.haxx.se/users/archive-2006-10/1345.shtml). But it's intended only
for the initial import. During normal work I'm using the commit time.

Oliver

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1090142

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: mtimes at import

Posted by Victoria Muntean <vi...@gmail.com>.
On Thu, Jan 29, 2009 at 10:10 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
>
> On Jan 29, 2009, at 10:49, Victoria Muntean wrote:
>
>> On Thu, Jan 22, 2009 at 9:14 AM, lorenz <lo...@yahoo.com> wrote:
>>>
>>> Victoria Muntean wrote:
>>>>
>>>> 'svn import' ignores mtimes of files, and sets 'Last Changed Date' of
>>>> all imported files to current time.
>>>> In one specific import, I'd like to have ''Last Changed Date' to be set
>>>> to
>>>> file's mtime.
>>>> Is there import option to do it,
>>>
>>> this was discussed several times here (and/or on dev).
>>> In short: no, but ...
>>>
>>>> or any way to modify backward the
>>>> ''Last Changed Date' in the repo, after import.
>>>
>>> you can change it after the fact,
>>
>> How ? Do you mean here, by rolling the client's time backward, and
>> forcing the checkin ?
>>
>> I want to modify that very "Last Changed Date" field.
>> Storing it as user-defined property is not too attractive.
>
> svn propedit --revprop -r REV svn:date URL_OR_WCPATH
>
> This requires that you enable revprop changes by installing a
> pre-revprop-change hook in the repository.
>
> And again, note that this will change the time of the revision as a while,
> thus affecting any files committed in that revision. You cannot set
> individual mtimes for individual times of a revision; Subversion simply has
> no place to store that information separately from the time of the revision.

Ah, if it's not per-file, it doesn't help me.
I'll try user-defined property.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1089861

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: mtimes at import

Posted by Victoria Muntean <vi...@gmail.com>.
On Thu, Jan 22, 2009 at 9:14 AM, lorenz <lo...@yahoo.com> wrote:
> Victoria Muntean wrote:
>>'svn import' ignores mtimes of files, and sets 'Last Changed Date' of
>>all imported files to current time.
>>In one specific import, I'd like to have ''Last Changed Date' to be set to
>>file's mtime.
>>Is there import option to do it,
>
> this was discussed several times here (and/or on dev).
> In short: no, but ...
>
>> or any way to modify backward the
>>''Last Changed Date' in the repo, after import.
>
> you can change it after the fact,

How ? Do you mean here, by rolling the client's time backward, and
forcing the checkin ?

I want to modify that very "Last Changed Date" field.
Storing it as user-defined property is not too attractive.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1069344

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: mtimes at import

Posted by lorenz <lo...@yahoo.com>.
Victoria Muntean wrote:
>'svn import' ignores mtimes of files, and sets 'Last Changed Date' of
>all imported files to current time.
>In one specific import, I'd like to have ''Last Changed Date' to be set to
>file's mtime.
>Is there import option to do it,

this was discussed several times here (and/or on dev).
In short: no, but ...

> or any way to modify backward the
>''Last Changed Date' in the repo, after import.

you can change it after the fact, but svn records the commit time per
revision (not per file).
The only way to have individual "Last Changed Date" for files is to
import them one by one (or grouped by mtimes).


If your are only interested in the information and don't need the
files mtime set on checkout, you could use a user defined file
property.
-- 

Lorenz

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1042899

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].