You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Rall <dl...@finemaltcoding.com> on 2002/10/12 02:39:14 UTC

Determining revision usisng a date

I'm trying to merge some old code into a new WC.  I tried passing the
-D sub-argument to the diff command, but was greated with the
following error message (I'm using a fairly old client):

   ra_dav does not currently support date-based operations.

How do I determine which trunk revision corresponds to some code I
made modifications to on July 31, 2002?
-- 

Daniel Rall <dl...@finemaltcoding.com>

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

Re: Determining revision usisng a date

Posted by Greg Stein <gs...@lyra.org>.
On Fri, Oct 11, 2002 at 07:39:14PM -0700, Daniel Rall wrote:
> I'm trying to merge some old code into a new WC.  I tried passing the
> -D sub-argument to the diff command, but was greated with the
> following error message (I'm using a fairly old client):
> 
>    ra_dav does not currently support date-based operations.
> 
> How do I determine which trunk revision corresponds to some code I
> made modifications to on July 31, 2002?

Nowadays, we would use 'svn info', but older clients might not have that.
And if you used a new client against your old WC, I'm not exactly sure what
would happen (I believe we're generally forward-compatible, but there have
been some "you must check out a new WC" points).

The secret mojo is to do:

$ cd working-copy-directory
$ fgrep revision= .svn/entries
   revision="3272"/>
$

That will tell you the revision of that directory, and usually, all of its
contents. Mixed revision working copies throws it all to hell, but I'm
guessing that you don't have that.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

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

Re: Determining revision usisng a date

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Greg Stein <gs...@lyra.org> writes:

> On Fri, Oct 11, 2002 at 07:39:14PM -0700, Daniel Rall wrote:
> > I'm trying to merge some old code into a new WC.  I tried passing the
> > -D sub-argument to the diff command, but was greated with the
> > following error message (I'm using a fairly old client):
> > 
> >    ra_dav does not currently support date-based operations.
> > 
> > How do I determine which trunk revision corresponds to some code I
> > made modifications to on July 31, 2002?
> 
> Oh... my previous email was based on having a working copy. If you don't
> have one, then you'll just need to do a binary search.
> 
> $ cd some-working-copy
> $ svn log -r 2600
> oop. too early
> $ svn log -r 3000
> oop. too late
> 
> Or without a working copy:
> 
> $ svn log -r 2700 http://svn.collab.net/repos/svn/
> oop. too early
> ...
> 
> 
> You want something near rev 2820. Note that you can use -r2810:2830 and look
> at the logs.

I went with 2800, which was close enough for `patch`.  The issue was
that the working copy I was using is checked into another repository
(e.g. not http://svn.collab.net/repos/svn/), so I was unable to divine
the http://svn.collab.net/repos/svn/ revision from my other copy's WC.

Taken care of now, thanks for the advice.
-- 

Daniel Rall <dl...@finemaltcoding.com>

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

Re: Determining revision usisng a date

Posted by mark benedetto king <bk...@inquira.com>.
On Fri, Oct 11, 2002 at 08:31:04PM -0700, Greg Stein wrote:
> Oh... my previous email was based on having a working copy. If you don't
> have one, then you'll just need to do a binary search.
> 

You can do much better than a binary search: you can do an interpolative
search!  :-)


--ben


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

Re: Determining revision usisng a date

Posted by Greg Stein <gs...@lyra.org>.
On Fri, Oct 11, 2002 at 07:39:14PM -0700, Daniel Rall wrote:
> I'm trying to merge some old code into a new WC.  I tried passing the
> -D sub-argument to the diff command, but was greated with the
> following error message (I'm using a fairly old client):
> 
>    ra_dav does not currently support date-based operations.
> 
> How do I determine which trunk revision corresponds to some code I
> made modifications to on July 31, 2002?

Oh... my previous email was based on having a working copy. If you don't
have one, then you'll just need to do a binary search.

$ cd some-working-copy
$ svn log -r 2600
oop. too early
$ svn log -r 3000
oop. too late

Or without a working copy:

$ svn log -r 2700 http://svn.collab.net/repos/svn/
oop. too early
...


You want something near rev 2820. Note that you can use -r2810:2830 and look
at the logs.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

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

Re: Determining revision usisng a date

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Craig Peterein <cr...@peterein.org> writes:

> On Sun, Oct 13, 2002 at 09:50:00AM -0700, Daniel Rall wrote:
> > Daniel Rall <dl...@finemaltcoding.com> writes:
> > > How do I determine which trunk revision corresponds to some code I
> > > made modifications to on July 31, 2002?
> > 
> > cjp on #svn suggested `svn status | grep 2002-07-31`.  This gave me
> > a range of repository revisions, and was sufficient for merging my old
> > code into my new WC.
> 
> That should be `svn log | grep 2002-07-31`

Yeah, that.  Thanks again Craig.  ;-)
-- 

Daniel Rall <dl...@finemaltcoding.com>

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

Re: Determining revision usisng a date

Posted by Craig Peterein <cr...@peterein.org>.
On Sun, Oct 13, 2002 at 09:50:00AM -0700, Daniel Rall wrote:
> Daniel Rall <dl...@finemaltcoding.com> writes:
> > How do I determine which trunk revision corresponds to some code I
> > made modifications to on July 31, 2002?
> 
> cjp on #svn suggested `svn status | grep 2002-07-31`.  This gave me
> a range of repository revisions, and was sufficient for merging my old
> code into my new WC.

That should be `svn log | grep 2002-07-31`

Craig (aka cjp)

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

Re: Determining revision usisng a date

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Daniel Rall <dl...@finemaltcoding.com> writes:

> I'm trying to merge some old code into a new WC.  I tried passing the
> -D sub-argument to the diff command, but was greated with the
> following error message (I'm using a fairly old client):
> 
>    ra_dav does not currently support date-based operations.
> 
> How do I determine which trunk revision corresponds to some code I
> made modifications to on July 31, 2002?

cjp on #svn suggested `svn status | grep 2002-07-31`.  This gave me
a range of repository revisions, and was sufficient for merging my old
code into my new WC.
-- 

Daniel Rall <dl...@finemaltcoding.com>

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