[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

1225.0. "submitting an previous rev of a checked out file" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Thu Jan 26 1995 19:41

Date Of Receipt: 	26-JAN-1995 16:19:45.66
From: 	SMURF::ALPHA::"rll@unx.dec.com" "26-Jan-1995 1614"
To: 	odehelp@zk3.dec.com
CC: 	
Subj: 	submitting an previous rev of a checked out file

Is there a clean way to submit an earlier version of a file
that is checked out onto a branch. For example, I created a
new file and do a number of bco/bci's on the branch of that
file. The latest rev of that file is say, 1.2.2.3 and I want
to submit version 1.2.2.1. Can I submit version 1.2.2.1 from
that same branch in that sandbox?

Rich
================================================================
Rich Larsen, M/S: UNX			TCP/IP: rll@unx.dec.com
USSG/User Env. & Std. Group		DECnet: UNXA::LARSEN
Digital Equipment Corporation		FAX:	908-577-6003
200 Route 9 North			Voice:	908-577-6083	
Manalapan, New Jersey 07726		DTN:	462 

T.RTitleUserPersonal
Name
DateLines
1225.1Re: submitting an previous rev of a checked out fileAOSG::FILTERAutomatic Posting Software - mail to flume::puckThu Jan 26 1995 20:4640
Date Of Receipt: 	26-JAN-1995 16:36:45.50
From: 	SMURF::ALPHA::"vandyck@cardinal.zk3.dec.com" "26-Jan-1995 1635"
To: 	"Rich Larsen rll@unx.dec.com" <rll@unx.dec.com>
CC: 	odehelp@zk3.dec.com
Subj: 	Re: submitting an previous rev of a checked out file

Just outdate the 1.2.2.2 and 1.2.2.3 versions using bcs -o.
If you look at the manpage for bcs you can see how to outdate a range.

  -o[range]
       Outdates revisions given by range; if no range is given, removes
       branch and all revisions contained in private branch.  For example;
       the command bcs -o4-6 outdates versions 4,5, and 6 on the current
       branch.



	-Grant


| 
| Is there a clean way to submit an earlier version of a file
| that is checked out onto a branch. For example, I created a
| new file and do a number of bco/bci's on the branch of that
| file. The latest rev of that file is say, 1.2.2.3 and I want
| to submit version 1.2.2.1. Can I submit version 1.2.2.1 from
| that same branch in that sandbox?
| 
| Rich
| ================================================================
| Rich Larsen, M/S: UNX			TCP/IP: rll@unx.dec.com
| USSG/User Env. & Std. Group		DECnet: UNXA::LARSEN
| Digital Equipment Corporation		FAX:	908-577-6003
| 200 Route 9 North			Voice:	908-577-6083	
| Manalapan, New Jersey 07726		DTN:	462 


				-Grant


1225.2Re: submitting an previous rev of a checked out fileAOSG::FILTERAutomatic Posting Software - mail to flume::puckThu Jan 26 1995 20:4710
Date Of Receipt: 	26-JAN-1995 17:01:08.28
From: 	SMURF::FLAMBE::"rll@unx.dec.com" "26-Jan-1995 1656"
To: 	"Grant Van Dyck" <vandyck@cardinal.zk3.dec.com>
CC: 	"Rich Larsen rll@unx.dec.com" <rll@unx.dec.com>, odehelp@zk3.dec.com
Subj: 	Re: submitting an previous rev of a checked out file

That sounds fine but what if I want to save 1.2.2.2 and 1.2.2.3.

-Rich

1225.3Re: submitting an previous rev of a checked out fileAOSG::FILTERAutomatic Posting Software - mail to flume::puckFri Jan 27 1995 01:5724
Date Of Receipt: 	26-JAN-1995 22:27:47.86
From: 	SMURF::QUARRY::"vandyck@cardinal.zk3.dec.com"
To: 	rll@unx.dec.com (Rich Larsen rll@unx.dec.com)
CC: 	vandyck@cardinal.zk3.dec.com, rll@unx.dec.com, odehelp@zk3.dec.com
Subj: 	Re: submitting an previous rev of a checked out file

> That sounds fine but what if I want to save 1.2.2.2 and 1.2.2.3.
> 

Ah well that's a horse of a different color.

bco -r1.2.2.1 -u foo.c
mv foo.c foo.save
bco foo.c
mv foo.save foo.c
bci foo.c
bsubmit -noauto_out foo.c  #You must do this else your private branch goes
			    away.

-- 
 Grant Van Dyck 		enet:    vandyck@zk3.dec.com	
 Release Engineering


1225.4Re: submitting an previous rev of a checked out fileAOSG::FILTERAutomatic Posting Software - mail to flume::puckFri Jan 27 1995 06:0037
Date Of Receipt: 	27-JAN-1995 02:03:47.71
From: 	SMURF::FLUME::jmcg "Jim McGinness"
To: 	vandyck@zk3.dec.com
CC: 	odehelp@DEC:.zko.flume, rll@unx.dec.com
Subj: 	Re: submitting an previous rev of a checked out file

That submits 1.2.2.4, which is a copy of 1.2.2.1, rather than submitting
1.2.2.1.

To clean up (return to the _status_quo_ante_), he has to then outdate the
1.2.2.4 revision.

  bcs -o1.2.2.4 foo.c


I spent some time trying to figure out a cleaner way and found I was in the
same quandry as with the "revert" problem.  While there are RCS commands that
might do what's needed, there's just no way to get there through ODE.  The
closest I came to something "clean" was do Grant's suggestion in a new
sandbox.

  bci foo.c		# else it can't be checked out in the new sb
  mksb -back ... newsb
  workon -sb newsb
  bco -r1.2.2.1 -u foo.c
  mv foo.c foo.save
  bco foo.c
  cp foo.save foo.c
  bci -m"Same as Rev1.2.2.1" foo.c
  bsubmit foo.c
  exit
  mksb -undo newsb

Too many steps.

 -- jmcg