Hi!
I was afraid you would not follow up on my mail. Thanks for doing so after
all!
> > > ------- Additional comments from olh@tigris.org Fri Jan 2 06:48:41
> -0800
> > > 2004 -------
> > > why is there no cmdline option to override whatever is specified in
> > > ~/.subversion/config : 'use-commit-times'?
>
> > That said: I don't know if it has ever occurred that people might want
> > different behaviour within one user account for this option. I don't
> understand
> > how knowing this would help you. From your description I cannot conclude
> you
> > have a problem with the current situation, but what else could have been
> the
> > reason for a comment like this?
>
> The whole thing (maintaining timestamps) should be a cmdline option. But
> since svn export does it per default it is ok for me. It would be nice
> if svn co would also use commit timestamps instead of current time.
I know that is what you said last time, but *why* should it be configurable
from the command line? Do you want to check out with commit times one minute
and decide to use now-times (the default) a minute later? What's your
use-case?
The current implementation is based upon the idea that developers will want
to use now-times when using build systems like make, because then running
make on a working copy which has been switched to an older revision will still
cause the right files to be built. The use-commit-times option has been added
to support website updating and other projects which might want to use a
file-is-newer criterion instead of file-needs-rebuilding. If these use-cases are
run by on developer on one machine, these probably warrent entirely different
configuration areas - which *can* be set as a command line option
(--config-dir).
The issue you reopened was about building this funcitonality into
Subversion. This has successfully been completed. It even works with checkout (svn co).
Running the following commands will show you:
# create repos to play with
svnadmin create ./repos
#create new config dirs: -def = default; -uct = use-commit-times
# issue incorrect command to recreate config area
svn co --config-dir ./config-def/ >/dev/null
cp -r config{-def,-uct}
sed -e 's/# use-commit/use-commit/; s/# \[misc/\[misc/' < config-utc/config
> config-uct/config.new
mv -f config-uct/config{.new,}
svn co file://`pwd`/repos/ wc
touch wc/a
svn add wc/a
sleep 1m
svn ci -m "" wc
sleep 2m
svn co file://`pwd`/repos/ wc1 --config-dir config-def
svn co file://`pwd`/repos/ wc2 --config-dir config-uct
ls -l wc1
ls -l wc2
The output is (on my Linux machine):
[erik@bartje test]$ ls -l wc1
total 0
-rw-rw-r-- 1 erik erik 0 Jan 7 13:49 a
[erik@bartje test]$ ls -l wc2
total 0
-rw-rw-r-- 1 erik erik 0 Jan 7 13:47 a
From which I conclude this also works with checkout. So I see no reason to
reopen the issue.
With respect to your extention request for a command line option: could you
elaborate on why it is vitally important that you have such an option?
Thanks.
bye,
Erik.
--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 7 13:57:49 2004