You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Saulius Grazulis <gr...@akl.lt> on 2005/03/22 09:45:08 UTC

New feature request: commiting files with last mod times?

Hi folks,

we are happily using Subversion for our crystallography projects -- its really 
the best I could find on the Net ;). However, a problem surfaced when we 
started committing files that are generated by make:

PROBLEM:
we need to commit automatically generated files that are under control of 
'make'. Sometimes, a result file is checked in first, and then the source 
scripts that generated it, thus upon checkout Make thinks that the files 
should be remade when in fact they should not (we use use-commit-times=yes). 
The rebuild may be rather long, and it also makes it difficult to have 
identical trees in different user's work directories.

Q'n'D WORKAROUND:
A (temporary) solution to execute 'make -t' upon every checkout is 
unfortunately error-prone (sometimes it touches files that should not be 
touched...).

SUGGESTION:
What about introducing option into svn that says: "use last modification time 
upon commit and upon checkout"? The mod time could be stored as a property, 
perhaps. Ideally, this option should be bound to repository (but if this is 
too complicated, it could also be in the users' config files).

OTHER BENEFITS:
As a side benefit, this would also allow to import files without forgetting 
their true creation dates. This would help for the projects that started 
before putting them under Subversion, or for the projects that use files 
generated externally (for example, we use data files generated by measurement 
equipment, and data collection date is important parameter -- which is to 
some degree reflected by the file creation date).

In a programming environment, I also see possible beefits of such feature. For 
example, when writing a heavily optimizing compiler, outputs of the compiler 
test runs are of interest for developers and might also be put under version 
control. Since such outputs will most probably generated by Make, the same 
problem would arise.

Q:
What others think about such feature?

If the subversion developers/community are positive about the feature, I would 
post this suggestion to dev@subversion.tigris.org and maybe even try to 
prepare a patch... ;)

regards,
Saulius

-- 
Saulius Gražulis

Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)

tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366

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


Re: New feature request: commiting files with last mod times?

Posted by "Ph. Marek" <ph...@bmlv.gv.at>.
Hello Saulius.

Look at issue 1256 (http://subversion.tigris.org/issues/show_bug.cgi?id=1256)
and/or http://svn.collab.net/viewcvs/svn/branches/meta-data-versioning/.


Regards,

Phil 


PS: a look in the archives would help: 
http://svn.haxx.se/users/archive-2005-03/0958.shtml

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

Re: New feature request: commiting files with last mod times?

Posted by Dirk Schenkewitz <sc...@docomolab-euro.com>.
John Szakmeister wrote:
> On Wednesday 30 March 2005 00:46, Ph. Marek wrote:
> 
>>
>>There's the issue tracker, where you'll find issue 1256
>>(http://subversion.tigris.org/issues/show_bug.cgi?id=1256)
>>There you can vote.
> 
> 
> We don't actually use that field.  The only votes that really count are 
> those cast by committers.  However, we do pay attention to trends and try 
> to accommodate things that are important to the users.

Ahhh :-) That maybe explains why I could not manage to cast a vote there.

Thanks!
   Dirk

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

Re: New feature request: commiting files with last mod times?

Posted by John Szakmeister <jo...@szakmeister.net>.
On Wednesday 30 March 2005 00:46, Ph. Marek wrote:
> On Tuesday 29 March 2005 18:05, Dirk Schenkewitz wrote:
> > :-))))) YES!!! I want it, too! Should I cast my vote at a certain
> > : place to
> >
> > make it official?
>
> There's the issue tracker, where you'll find issue 1256
> (http://subversion.tigris.org/issues/show_bug.cgi?id=1256)
> There you can vote.

We don't actually use that field.  The only votes that really count are 
those cast by committers.  However, we do pay attention to trends and try 
to accommodate things that are important to the users.

-John

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

Re: New feature request: commiting files with last mod times?

Posted by "Ph. Marek" <ph...@bmlv.gv.at>.
On Tuesday 29 March 2005 18:05, Dirk Schenkewitz wrote:
> :-))))) YES!!! I want it, too! Should I cast my vote at a certain place to
> make it official?
There's the issue tracker, where you'll find issue 1256 
(http://subversion.tigris.org/issues/show_bug.cgi?id=1256)
There you can vote.


Regards,

Phil

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

Re: New feature request: commiting files with last mod times?

Posted by Dirk Schenkewitz <sc...@docomolab-euro.com>.

philipp.marek@bmlv.gv.at wrote:
> Saulius Grazulis wrote:
> 
>>I believe the feature you have implemented is very useful and deserves to be
>>merged into a main trunk ;). Can I cast my vote on this? I hope it will not
>>contribute to the "feature creep" ;)
> 
> I'd hope that anyone who finds mtime or full meta-data-versioning useful votes
> for my patches :-)

:-))))) YES!!! I want it, too! Should I cast my vote at a certain place to
make it official?

> BTW, is there an issue for meta-data-versioning? I didn't find one.

Well, even if not - I also want that. Some time ago I asked about how to put
the contens of a series of tar-files that come from someone else under svn,
at our place. I was hinted to vendor branches, which solve some part of the
problem, but I would definitely like to store as much (meta-)data/information
as possible into svn, at least everything that can be transported via tar-
files. Even if I don't need all of that all the time, it would be great to
have it.

> Regards,
> 
> Phil

Regards
   Dirk

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

Re: New feature request: commiting files with last mod times?

Posted by ph...@bmlv.gv.at.
Saulius Grazulis wrote:
> I believe the feature you have implemented is very useful and deserves to be
> merged into a main trunk ;). Can I cast my vote on this? I hope it will not
> contribute to the "feature creep" ;)
I'd hope that anyone who finds mtime or full meta-data-versioning useful votes
for my patches :-)

BTW, is there an issue for meta-data-versioning? I didn't find one.


Regards,

Phil


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

Re: New feature request: commiting files with last mod times?

Posted by Saulius Grazulis <gr...@akl.lt>.
Hi Phil,

On Wednesday 23 March 2005 14:56, you wrote:

> On Wednesday 23 March 2005 13:50, Saulius Grazulis wrote:
> > I have tried out you patch #2 on subversion 1.1.1 and 1.1.3. Both compile
> > OK and work as expected -- many thanks for a nice new feature!
>
> If you need patches (and cannot use a checkout from the repository at
> http://svn.collab.net/viewcvs/svn/branches/meta-data-versioning/text-time)

I have checked out rev 13350 branch text-time and compiled it on our machines.

It works well, no more bugs so far, and indeed the symlink bug is gone! Thanks 
a lot. The feature is enormously useful for our work. :)

> please use the patches from
> 
http://svn.collab.net/viewcvs/svn/branches/meta-data-versioning/patches/?rev=13403
> - I made a directory for the patches, but it was deleted (because 
> current diffs can be got via "svn diff")

I found a patch but I failed to determine which version it must be applied to. 
on both subversion 1.1.1 and 1.1.3 tarballs it fails... I guess it is against 
the trunk of rev 13403, right?

> ... but any
> further problems, notices, and thanks I'd like to be cc'ed to the
> dev-mailing list, so that the main developers see that there's a lot of
> interest in this feature.

I believe the feature you have implemented is very useful and deserves to be 
merged into a main trunk ;). Can I cast my vote on this? I hope it will not 
contribute to the "feature creep" ;)

-- 
Saulius Gražulis

Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)

tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366