Re: Can the -D option be used on a branch?

2001-04-17 Thread Mark D. Baushke

 From: [EMAIL PROTECTED] (Larry Jones)
 Date: Thu, 12 Apr 2001 19:24:27 -0400 (EDT)
 
 Russ Tremain writes:
  
  you can use -D with -r tag, but sometimes it is confusing.
  if tag is a simple tag, and not a branch tag, you might
  not get what you expect.
 
 If you specify both a specific revision and a specific date, I don't see
 how you would know *what* to expect.

Mixing -D with -r tag is an intersection operation.

If -r tag -D date specifies a specific version and specific date,
then you should expect the intersection of the specific revision and
the specific date. That is, any file in the module for which the
commit time of the specific version tag matches the specified date
should be checked out. This is probably not very useful unless you
specify the time down to the second...

This is the same kind of intersection operation you expect when you
ask for a specific time on a specific branch.

That is, what was the last committed version that was visible on the
branch at the specified time? If a given branch does not happen to
have any revisions on the branch before the specified time, no version
of that particular file is visible (as when adding new files to a
branch after the branch was originally created). If the branch
contains a version with the dead state as the last commit before the
specific time, then the file is also not to be checked out.

For the purpose of an intersection operation, a specific version is
just as if a branch happened to have a commit happen exactly one
second after the first commit to the branch. So, the specific version
may be considered as a degenerate case of a branch.

There are likely to be very few instances where this particular
intersection would be useful:

A) given that all commits during a single cvs commit operation have
the same commit time, it would be possible to determine all of the
commits that were atomic across the given repository at that specific
time which were also tagged with a particular version tag and checkout
just those files.

B) given a 'cvs import -d' that preserved date and time, it might be
possible to examine all of the files that were modified in the
original sources at a particular time by intersection of the import
tag with the specific time indication.

Enjoy!
-- Mark

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Can the -D option be used on a branch?

2001-04-16 Thread Russ Tremain

At 4:24 PM -0700 4/12/01, Larry Jones wrote:
Russ Tremain writes:
 
 you can use -D with -r tag, but sometimes it is confusing.
 if tag is a simple tag, and not a branch tag, you might
 not get what you expect.

If you specify both a specific revision and a specific date, I don't see
how you would know *what* to expect.


exactly.

IMHO, the semantics for -r are confusing.  Sometimes
it means a branch, and sometimes it means an exact revision.

I.e.:
-r branch_tag -D date

is useful, whereas:

-r revison_tag  -D date

is nonsense.

-Russ



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Can the -D option be used on a branch?

2001-04-16 Thread Larry Jones

Russ Tremain writes:
 
 IMHO, the semantics for -r are confusing.  Sometimes
 it means a branch, and sometimes it means an exact revision.

It's even worse for CVS -- exactly the same symbolic tag can be a
revision tag in one file and a branch tag in another!

-Larry Jones

These things just seem to happen. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Can the -D option be used on a branch?

2001-04-16 Thread Gerhard Sittig

On Mon, Apr 16, 2001 at 13:57 -0400, Larry Jones wrote:
 
 Russ Tremain writes:
  
  IMHO, the semantics for -r are confusing.  Sometimes it means
  a branch, and sometimes it means an exact revision.
 
 It's even worse for CVS -- exactly the same symbolic tag can be
 a revision tag in one file and a branch tag in another!

Isn't this the point where one introduces naming conventions for
tags to *see* what it is instead of having to guess? :


virtually yours   82D1 9B9C 01DC 4FB4 D7B4  61BE 3F49 4F77 72DE DA76
Gerhard Sittig   true | mail -s "get gpg key" [EMAIL PROTECTED]
-- 
 If you don't understand or are scared by any of the above
 ask your parents or an adult to help you.

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Can the -D option be used on a branch?

2001-04-12 Thread Russ Tremain

you can use -D with -r tag, but sometimes it is confusing.
if tag is a simple tag, and not a branch tag, you might
not get what you expect.

-Russ

At 10:56 PM -0700 4/11/01, David L. Martin wrote:
 David L. Martin writes:
  
  I'd like to be able to checkout from a branch but take revisions that
  are older than a specified date.  Since the -D and -r are both
  sticky, they apparently cannot be used in combination.  Does
  anyone know of a workaround or combination of commands to
  do this?
 
 Actually, they can be used in combination.
 
 -Larry Jones
 

Ah yes, so they can!  The tag is sticky, not the date, in the resulting
checkout, but the date option is honored as expected.  The command
usage for checkout and update (cvs --help co, cvs --help up) should
perhaps be changed from [-r rev | -D date] to [-r rev] [-D date] to indicate
that both options may be used in combination.

In contrast, I note that rtag and tag operations do not accept the
combination of -r and -D options.  They are mutually exclusive, and
the help for rtag and tag indicates this ([-r rev | -D date]).  It would be
nice for tag/rtag to accept both options as well.  (But one could always
tag following checkout with both options and achieve essentially the
same result).

Thanks,
David Martin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Can the -D option be used on a branch?

2001-04-12 Thread Larry Jones

Russ Tremain writes:
 
 you can use -D with -r tag, but sometimes it is confusing.
 if tag is a simple tag, and not a branch tag, you might
 not get what you expect.

If you specify both a specific revision and a specific date, I don't see
how you would know *what* to expect.

-Larry Jones

In short, open revolt and exile is the only hope for change? -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Can the -D option be used on a branch?

2001-04-11 Thread Larry Jones

David L. Martin writes:
 
 I'd like to be able to checkout from a branch but take revisions that
 are older than a specified date.  Since the -D and -r are both
 sticky, they apparently cannot be used in combination.  Does
 anyone know of a workaround or combination of commands to
 do this?

Actually, they can be used in combination.

-Larry Jones

It's a Doofus Ignoramus!  Our hero slowly reaches for his stun blaster!
-- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Can the -D option be used on a branch?

2001-04-11 Thread David L. Martin

 David L. Martin writes:
  
  I'd like to be able to checkout from a branch but take revisions that
  are older than a specified date.  Since the -D and -r are both
  sticky, they apparently cannot be used in combination.  Does
  anyone know of a workaround or combination of commands to
  do this?
 
 Actually, they can be used in combination.
 
 -Larry Jones
 

Ah yes, so they can!  The tag is sticky, not the date, in the resulting
checkout, but the date option is honored as expected.  The command
usage for checkout and update (cvs --help co, cvs --help up) should
perhaps be changed from [-r rev | -D date] to [-r rev] [-D date] to indicate
that both options may be used in combination.

In contrast, I note that rtag and tag operations do not accept the
combination of -r and -D options.  They are mutually exclusive, and
the help for rtag and tag indicates this ([-r rev | -D date]).  It would be
nice for tag/rtag to accept both options as well.  (But one could always
tag following checkout with both options and achieve essentially the
same result).

Thanks,
David Martin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Can the -D option be used on a branch?

2001-04-10 Thread David L. Martin

I'd like to be able to checkout from a branch but take revisions that
are older than a specified date.  Since the -D and -r are both
sticky, they apparently cannot be used in combination.  Does
anyone know of a workaround or combination of commands to
do this?

Also, does the -D option only apply to trunk revisions?

Thanks,
David Martin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs