[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to check out a project based on commit time rather than rev?

From: Nathan Hartman <hartman.nathan_at_gmail.com>
Date: Fri, 18 May 2018 15:14:16 -0400

On Fri, May 18, 2018 at 12:35 PM Bo Berglund <bo.berglund_at_gmail.com> wrote:

> On Fri, 18 May 2018 18:00:21 +0200, Bo Berglund
> <bo.berglund_at_gmail.com> wrote:
>
> >Obviously this is a "for dummies" question but I *have* looked at the
> >svnbook but I cannot still find how to do this:
>
> I did not read good enough!
> This worked fine to get the information I needed concerning active
> revision numbers:
> svn log -v -r {2012-05-06}:{2017-01-01} <URL to server side directory>
> > log.txt
>
> So now I can use this to compare the files and add what is lacking to
> the wc I have checked out to make it be current at the date I need.
>
> Sorry for the noise!
>
> --
> Bo Berglund
> Developer in Sweden

I've wondered why there isn't a checkout or update command that takes a
date and time but usually I look in the log to figure out what is the
revision number.

I don't know how CVS works but with Subversion, when you checkout an old
revision, you get the directories and files exactly as they looked in that
revision (including files that were not changed in that revision). Think of
it as a snapshot of how everything looked at that moment. Just make sure
each time you commit that Subversion knows about all the files you intend
to keep -- ie that svn st in the working copy directory does not show '?'
on files that should be under version control. You're allowed to have
unversioned files alongside versioned ones, eg for intermediate build
artifacts, editor bak files, and other junk.

>
Received on 2018-05-18 21:14:33 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.