Discussion:
commiting a sticky file
sparkylee
2009-07-24 19:01:12 UTC
Permalink
hi...

i guess this is a dumb question but i'll be danged if i can find the
answer.

i have a main trunk and want to create a branch. i do it, and check
out the branch. now all the files are sticky. i can't commit them. i
want to edit and commit to the branch.

an update -A doesn't work because a commit commits the revision to the
main trunk.
it can't be that hard.

thanks!!!

lee
Spiro Trikaliotis
2009-07-25 17:43:42 UTC
Permalink
Hello,

* On Fri, Jul 24, 2009 at 12:01:12PM -0700 sparkylee wrote:

> i guess this is a dumb question but i'll be danged if i can find the
> answer.
>
> i have a main trunk and want to create a branch. i do it, and check
> out the branch. now all the files are sticky. i can't commit them. i
> want to edit and commit to the branch.

Can you give the exact commands you are using?

When you create a branch and update your sandbox to point there, all
files get a sticky tag, that's right. However, it should be the sticky
tag of a branch - thus, you can commit there.

However, if the tag is no branch tag, you cannot commit. Thus, I assume
you are giving wrong commands.

An example how it works (from inside of the sandbox):

$ cvs tag -r TAG_FROM_WHICH_YOU_WANT_TO_BRANCH -b BRANCH_TAG
$ cvs up -r BRANCH_TAG

HTH,
Spiro.

--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
sparkylee
2009-07-27 17:01:11 UTC
Permalink
On Jul 25, 10:43 am, Spiro Trikaliotis <list-
info-***@spiro.trikaliotis.net> wrote:
> Hello,
>
> * On Fri, Jul 24, 2009 at 12:01:12PM -0700 sparkylee wrote:
>
> > i guess this is a dumb question but i'll be danged if i can find the
> > answer.
>
> > i have a main trunk and want to create a branch.  i do it, and check
> > out the branch. now all the files are sticky. i can't commit them.  i
> > want to edit and commit to the branch.
>
> Can you give the exact commands you are using?
>
> When you create a branch and update your sandbox to point there, all
> files get a sticky tag, that's right. However, it should be the sticky
> tag of a branch - thus, you can commit there.
>
> However, if the tag is no branch tag, you cannot commit. Thus, I assume
> you are giving wrong commands.
>
> An example how it works (from inside of the sandbox):
>
> $ cvs tag -r TAG_FROM_WHICH_YOU_WANT_TO_BRANCH  -b BRANCH_TAG
> $ cvs up -r BRANCH_TAG
>
> HTH,
> Spiro.
>
> --
> Spiro R. Trikaliotis                              http://opencbm.sf.net/http://www.trikaliotis.net/                   http://www.viceteam.org/

i think i have the sandbox all screwed up. i tried the above and after
the update -r <branch> the file still
had a sticky tag. like i said if i do an update -A , edit, and
commit, it commits to the trunk revision, not
the branch revision.

i guess i'll see if i can delete this test from the repository and
start over.

thanks.
lee
Spiro Trikaliotis
2009-07-27 18:28:20 UTC
Permalink
Hello,

* On Mon, Jul 27, 2009 at 10:01:11AM -0700 sparkylee wrote:

> i think i have the sandbox all screwed up. i tried the above and after
> the update -r <branch> the file still
> had a sticky tag.

This is normal, and it should be this way! It is only that this sticky
tag must be a branch tag in order to be able to commit.

Best regards,
Spiro.

--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
sparkylee
2009-07-27 18:52:43 UTC
Permalink
On Jul 27, 11:28 am, Spiro Trikaliotis <list-
info-***@spiro.trikaliotis.net> wrote:
> Hello,
>
> * On Mon, Jul 27, 2009 at 10:01:11AM -0700 sparkylee wrote:
>
> > i think i have the sandbox all screwed up. i tried the above and after
> > the update -r <branch> the file still
> > had a sticky tag.
>
> This is normal, and it should be this way! It is only that this sticky
> tag must be a branch tag in order to be able to commit.
>
> Best regards,
>    Spiro.
>
> --
> Spiro R. Trikaliotis                              http://opencbm.sf.net/http://www.trikaliotis.net/                   http://www.viceteam.org/

ok, i have a file RCP.iap_xml which has a sticky tag. i edit it, then:
cvs commit -m "a message" RCP.iap_xml

and get:
cvs commit: sticky tag `RCP_5_0_2' for file `RCP.iap_xml' is not a
branch
cvs [commit aborted]: correct above errors first!

lee
sparkylee
2009-07-27 19:17:46 UTC
Permalink
CORRECTION. i make a super simple repository to check out your
suggestions
and don't know 1st time, but this time it worked. i created the
branch, updated,
edited and committed with no problem.

i think my problem in the original for-real repository, is that i'm
trying to commit a sticky revision,
not a sticky branch. over there i never did an update -r
<branchname>; i just
checked out what i thought was a branch, but was just a tag i guess.

argh!!!

i'm not even sure anymore what i did.
i'm lost.
here's the cvs status -v output for the real file that i'm trying to
commit (to the branch):
===================================================================
File: RCP.iap_xml Status: Locally Modified

Working revision: 1.6.2.1
Repository revision: 1.6.2.1 /home/cvs/repository/rcp/tools/
install_anywhere/conf/RCP.iap_xml,v
Commit Identifier: veSNKconrX7O6oSt
Sticky Tag: RCP_5_0_2 (revision: 1.6.2.1)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_2 (revision: 1.6.2.1)
RCP_5_0_1 (revision: 1.6.2.1)
RCP_6_0_CVN (revision: 1.9)
RCP_5_0 (revision: 1.6)
RCP_4_9_2 (revision: 1.5)
RCP_4_9_1 (revision: 1.4)
RCP_4_9_0 (revision: 1.4)


yeah, under Existing Tags: there isn't a branch.

so how about if i check out the RCP_5_0_2 tag,
then:
$ cvs tag -r RCP_5_0_2 -b RCP_5_0_2

and then
$cvs up -r RCP_5_0_2

then edit and commit files from there?

lee
sparkylee
2009-07-27 22:39:57 UTC
Permalink
i do have an RCP_5_0_1 branch. i can check out, edit and commit.
apparently i do NOT have an RCP_5_0_2 branch. so when i check THAT
out, i can't commit changes.

status on a typical file shows:

[]:/cygdrive/c/lees/dev/rcp502/rcp/src/rcp/rus: cvs status -v Rus.java
| less
===================================================================
File: Rus.java Status: Up-to-date

Working revision: 1.103.2.2
Repository revision: 1.103.2.2 /home/cvs/repository/rcp/src/
rcp/rus/Rus.java,v
Commit Identifier: O6D7s2oDTzFTDPUt
Sticky Tag: RCP_5_0_2 (revision: 1.103.2.2)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_2 (revision: 1.103.2.2)
RCP_5_0_1 (branch: 1.103.2)
RCP_6_0_CVN (revision: 1.104)
RCP_5_0 (revision: 1.103)
RCP_4_9_2 (revision: 1.102)
RCP_4_9_1 (revision: 1.101)
RCP_4_9_0 (revision: 1.100)
....

the intention was to branch RCP_5_x off of the RCP_5_0 trunk.

i wonder how i can fix this?

lee
Risman, Mark
2009-07-28 13:59:55 UTC
Permalink
Lee,

It looks like your RCP_5_0_1 branch is indeed off of RCP_5_0 tag. If you
look at the output from your "status" command (or a "log" command if you
were to look at that), notice where it says "branch: 1.103.2" next to
the branch name "RCP_5_0_1". The "1.103" in that spot means that the
branch is off of the RCP_5_0 tag, which currently points to 1.103.

If you look at RCP_5_0_2, you'll see "1.103..." there too; this is also
a branch from the same place.

Also note that "RCP_5_0" is indeed a tag, but not a trunk. CVS will
allow that tag to be moved to any other revision, if someone were to
tell it so. The branch is always off of a specific revision, not tag, so
these branches will be off of 1.103, regardless of what happens to the
RCP_5_0 tag.

For more information on how to interpret those revision numbers, please
see http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_5.html#SEC58. You can
change that URL to match the cvs version you have.


-----Original Message-----
From: info-cvs-bounces+mark.risman=***@nongnu.org
[mailto:info-cvs-bounces+mark.risman=***@nongnu.org] On Behalf Of
sparkylee
Sent: Monday, July 27, 2009 6:40 PM
To: info-***@nongnu.org
Subject: Re: commiting a sticky file

i do have an RCP_5_0_1 branch. i can check out, edit and commit.
apparently i do NOT have an RCP_5_0_2 branch. so when i check THAT
out, i can't commit changes.

status on a typical file shows:

[]:/cygdrive/c/lees/dev/rcp502/rcp/src/rcp/rus: cvs status -v Rus.java
| less
===================================================================
File: Rus.java Status: Up-to-date

Working revision: 1.103.2.2
Repository revision: 1.103.2.2 /home/cvs/repository/rcp/src/
rcp/rus/Rus.java,v
Commit Identifier: O6D7s2oDTzFTDPUt
Sticky Tag: RCP_5_0_2 (revision: 1.103.2.2)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_2 (revision: 1.103.2.2)
RCP_5_0_1 (branch: 1.103.2)
RCP_6_0_CVN (revision: 1.104)
RCP_5_0 (revision: 1.103)
RCP_4_9_2 (revision: 1.102)
RCP_4_9_1 (revision: 1.101)
RCP_4_9_0 (revision: 1.100)
....

the intention was to branch RCP_5_x off of the RCP_5_0 trunk.

i wonder how i can fix this?

lee





**********************************************************

MLB.com: Where Baseball is Always On
sparkylee
2009-07-28 19:43:42 UTC
Permalink
On Jul 28, 6:59 am, "Risman, Mark" <***@mlb.com> wrote:
> Lee,
>
> It looks like your RCP_5_0_1 branch is indeed off of RCP_5_0 tag. If you
> look at the output from your "status" command (or a "log" command if you
> were to look at that), notice where it says "branch: 1.103.2" next to
> the branch name "RCP_5_0_1". The "1.103" in that spot means that the
> branch is off of the RCP_5_0 tag, which currently points to 1.103.
ok.

>
> If you look at RCP_5_0_2, you'll see "1.103..." there too; this is also
> a branch from the same place.
?? RCP_5_0_2 looks like a revision off the RCP_5_0_2 branch to me.

>
> Also note that "RCP_5_0" is indeed a tag, but not a trunk.
it is supposed to be the trunk.

>CVS will
> allow that tag to be moved to any other revision, if someone were to
> tell it so. The branch is always off of a specific revision, not tag, so
> these branches will be off of 1.103, regardless of what happens to the
> RCP_5_0 tag.
for this file. i understand CVS creates the branch off each revision
number for each file,
of which there are over 700 in this case.

>
> For more information on how to interpret those revision numbers, please
> seehttp://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_5.html#SEC58. You can
> change that URL to match the cvs version you have.
i think i finally understand the revision numbers.

if you'll bear with me, let me summarize what the intended branching
philosophy here is.

development of RCP proceeded linearly up to RCP_5_0, primarily for a
platform we'll call A.
This was stable, tagged and released.

Subsequently, development was continued primarily for a different
platform B and it diverged
from the platform A code. so then RCP_6_0 was released. it is hard
to say what the main trunk should be: platform A or B. nevertheless
RCP_6_0 is the trunk, right or wrong.

meanwhile a bug was found in RCP_5_0. so a branch was created called
RCP_5_0_1. badly named i think. the fix was put in and tagged by the
same
name, RCP_5_0_1. bad idea. there were a few other changes and
RCP_5_0_2 was tagged. so there should be this fixit branch which will
have subsequent tags.

i'm really confused about whether this is a good strategy.

lee






>
>
>
> -----Original Message-----
> From: info-cvs-bounces+mark.risman=***@nongnu.org
>
> [mailto:info-cvs-bounces+mark.risman=***@nongnu.org] On Behalf Of
> sparkylee
> Sent: Monday, July 27, 2009 6:40 PM
> To: info-***@nongnu.org
> Subject: Re: commiting a sticky file
>
> i do have an RCP_5_0_1 branch. i can check out, edit and commit.
> apparently i do NOT have an RCP_5_0_2 branch. so when i check THAT
> out, i can't commit changes.
>
> status on a typical file shows:
>
> []:/cygdrive/c/lees/dev/rcp502/rcp/src/rcp/rus: cvs status -v Rus.java
> | less
> ===================================================================
> File: Rus.java          Status: Up-to-date
>
>    Working revision:    1.103.2.2
>    Repository revision: 1.103.2.2       /home/cvs/repository/rcp/src/
> rcp/rus/Rus.java,v
>    Commit Identifier:   O6D7s2oDTzFTDPUt
>    Sticky Tag:          RCP_5_0_2 (revision: 1.103.2.2)
>    Sticky Date:         (none)
>    Sticky Options:      (none)
>
>    Existing Tags:
>         RCP_5_0_2                       (revision: 1.103.2.2)
>         RCP_5_0_1                       (branch: 1.103.2)
>         RCP_6_0_CVN                     (revision: 1.104)
>         RCP_5_0                         (revision: 1.103)
>         RCP_4_9_2                       (revision: 1.102)
>         RCP_4_9_1                       (revision: 1.101)
>         RCP_4_9_0                       (revision: 1.100)
>         ....
>
> the intention was to branch RCP_5_x off of the RCP_5_0 trunk.
>
> i wonder how i can fix this?
>
> lee
>
> **********************************************************
>
> MLB.com: Where Baseball is Always On- Hide quoted text -
>
> - Show quoted text -
Risman, Mark
2009-07-28 21:36:19 UTC
Permalink
-----Original Message-----
From: info-cvs-bounces+mark.risman=***@nongnu.org [mailto:info-cvs-bounces+mark.risman=***@nongnu.org] On Behalf Of sparkylee
Sent: Tuesday, July 28, 2009 3:44 PM
To: info-***@nongnu.org
Subject: Re: commiting a sticky file

On Jul 28, 6:59 am, "Risman, Mark" <***@mlb.com> wrote:
> Lee,
>
[...]
>
> If you look at RCP_5_0_2, you'll see "1.103..." there too; this is also
> a branch from the same place.
?? RCP_5_0_2 looks like a revision off the RCP_5_0_2 branch to me.

Risman>> What I meant to say here was that, based on the "cvs status" output, you have a branch also off of 1.103. Looking at it again now, I see that it's the same branch, RCP_5_0_1. RCP_5_0_2 is a revision from that branch.

[...]

>CVS will
> allow that tag to be moved to any other revision, if someone were to
> tell it so. The branch is always off of a specific revision, not tag, so
> these branches will be off of 1.103, regardless of what happens to the
> RCP_5_0 tag.
for this file. i understand CVS creates the branch off each revision
number for each file,
of which there are over 700 in this case.

Risman>> Each branch has only one root (one revision that serves as the root for that branch). Branches don't move. You could theoretically destroy a branch and create a new one with the same name, but that only happens if you very deliberately do so, and should be a rare or nonexistent real-world case.

>
> For more information on how to interpret those revision numbers, please
> seehttp://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_5.html#SEC58. You can
> change that URL to match the cvs version you have.
i think i finally understand the revision numbers.

if you'll bear with me, let me summarize what the intended branching
philosophy here is.

development of RCP proceeded linearly up to RCP_5_0, primarily for a
platform we'll call A.
This was stable, tagged and released.

Subsequently, development was continued primarily for a different
platform B and it diverged
from the platform A code. so then RCP_6_0 was released. it is hard
to say what the main trunk should be: platform A or B. nevertheless
RCP_6_0 is the trunk, right or wrong.

Risman>> Just keep in mind that the trunk will grow if new revisions are added to it, but RCP_6_0, like any revision tag, will not move unless you (or a tool you use) move(s) it.


meanwhile a bug was found in RCP_5_0. so a branch was created called
RCP_5_0_1. badly named i think. the fix was put in and tagged by the
same
name, RCP_5_0_1. bad idea. there were a few other changes and
RCP_5_0_2 was tagged. so there should be this fixit branch which will
have subsequent tags.

Risman>> For this file, at least, RCP_5_0_2 seems to be a revision tag, not a branch tag. Also, whenever you want to refer to the last revision on a branch, for cvs operations like "commit", "diff", "update -j" or "export", are you already aware that you can use the branch name to refer to the latest on that branch?

i'm really confused about whether this is a good strategy.

lee






>
>
>
> -----Original Message-----
> From: info-cvs-bounces+mark.risman=***@nongnu.org
>
> [mailto:info-cvs-bounces+mark.risman=***@nongnu.org] On Behalf Of
> sparkylee
> Sent: Monday, July 27, 2009 6:40 PM
> To: info-***@nongnu.org
> Subject: Re: commiting a sticky file
>
> i do have an RCP_5_0_1 branch. i can check out, edit and commit.
> apparently i do NOT have an RCP_5_0_2 branch. so when i check THAT
> out, i can't commit changes.
>
> status on a typical file shows:
>
> []:/cygdrive/c/lees/dev/rcp502/rcp/src/rcp/rus: cvs status -v Rus.java
> | less
> ===================================================================
> File: Rus.java          Status: Up-to-date
>
>    Working revision:    1.103.2.2
>    Repository revision: 1.103.2.2       /home/cvs/repository/rcp/src/
> rcp/rus/Rus.java,v
>    Commit Identifier:   O6D7s2oDTzFTDPUt
>    Sticky Tag:          RCP_5_0_2 (revision: 1.103.2.2)
>    Sticky Date:         (none)
>    Sticky Options:      (none)
>
>    Existing Tags:
>         RCP_5_0_2                       (revision: 1.103.2.2)
>         RCP_5_0_1                       (branch: 1.103.2)
>         RCP_6_0_CVN                     (revision: 1.104)
>         RCP_5_0                         (revision: 1.103)
>         RCP_4_9_2                       (revision: 1.102)
>         RCP_4_9_1                       (revision: 1.101)
>         RCP_4_9_0                       (revision: 1.100)
>         ....
>
> the intention was to branch RCP_5_x off of the RCP_5_0 trunk.
>
> i wonder how i can fix this?
>
> lee
>
> **********************************************************
>
> MLB.com: Where Baseball is Always On- Hide quoted text -
>
> - Show quoted text -






**********************************************************

MLB.com: Where Baseball is Always On
sparkylee
2009-07-29 20:12:42 UTC
Permalink
first of all, thanks for sticking with me. Einstein said that the
clear definition of a problem was 90% of
the solution. well that's been my problem. unable to clearly state
the problem.

i appreciate your patience.

it is basically that i have created a branch and wish to continue
further fixes on it.

......snip
> Risman>> For this file, at least, RCP_5_0_2 seems to be a revision tag, not a branch tag. Also, whenever you want to refer to the last revision on a branch, for cvs operations like "commit", "diff", "update -j" or "export", are you already aware that you can use the branch name to refer to the latest on that branch?
.....
i guess that hasn't been clear to me. i think that has been my
problem.

now... RCP_5_0_1 is a branch. what i want to do is do any further
RCP_5_0 development or bug fixes along this branch. so after creating
the branch i did a couple of small things and tagged RCP_5_0_2.
everything is in order, but if i checkout RCP_5_0_2 the files are
sticky and cannot change.

i guess i stay in the RCP_5_0_1 branch and change/commit there.
always. ??

the confusion comes because we used to tag a linear trunk RCP_x_y_x.
check it out and resume editing/commiting. YOU CANNOT DO THAT ON A
BRANCH apparently.

so i have a sandbox for RCP_5_0_1 which started with the branch
RCP_5_0_1 with subsequent edits and commits and at some point a tag
(RCP_5_0_2). then i can check that tag out, but not work on it (which
is the point of sticky tags i guess)

do i have this right yet?

however i don't think i created a tag RCP_5_0_1, which means i cannot
ever reproduce anything between RCP_5_0 and RCP_5_0_2. is that
right?

===================================================================
File: Rus.java Status: Up-to-date

Working revision: 1.103.2.2
Repository revision: 1.103.2.2 /home/cvs/repository/rcp/src/
rcp/rus/Rus.java,v
Commit Identifier: O6D7s2oDTzFTDPUt
Sticky Tag: RCP_5_0_2 (revision: 1.103.2.2)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_2 (revision: 1.103.2.2)
RCP_5_0_1 (branch: 1.103.2)
<-------------------- name of a branch, not a tag, right?
RCP_6_0_CVN (revision: 1.104)
RCP_5_0 (revision: 1.103)
RCP_4_9_2 (revision: 1.102)
RCP_4_9_1 (revision: 1.101)
RCP_4_9_0 (revision: 1.100)
thanks.....
lee
Risman, Mark
2009-07-30 14:40:37 UTC
Permalink
-----Original Message-----
From: info-cvs-bounces+mark.risman=***@nongnu.org
[mailto:info-cvs-bounces+mark.risman=***@nongnu.org] On Behalf Of
sparkylee
Sent: Wednesday, July 29, 2009 4:13 PM
To: info-***@nongnu.org
Subject: Re: commiting a sticky file

[...]

now... RCP_5_0_1 is a branch. what i want to do is do any further
RCP_5_0 development or bug fixes along this branch. so after creating
the branch i did a couple of small things and tagged RCP_5_0_2.
everything is in order, but if i checkout RCP_5_0_2 the files are
sticky and cannot change.

i guess i stay in the RCP_5_0_1 branch and change/commit there.
always. ??

the confusion comes because we used to tag a linear trunk RCP_x_y_x.
check it out and resume editing/commiting. YOU CANNOT DO THAT ON A
BRANCH apparently.

Risman>> I don't see why you wouldn't be able to do that. As you pointed
out below, though, once you've checked out RCP_5_0_2, you're stuck to
that tag. That means you're no longer stuck to the branch. You can't
commit to a non-branch (revision) tag because the tag already points to
a revision, so it can't also point to the new revision you check in at
the same time.


so i have a sandbox for RCP_5_0_1 which started with the branch
RCP_5_0_1 with subsequent edits and commits and at some point a tag
(RCP_5_0_2). then i can check that tag out, but not work on it (which
is the point of sticky tags i guess)

do i have this right yet?

however i don't think i created a tag RCP_5_0_1, which means i cannot
ever reproduce anything between RCP_5_0 and RCP_5_0_2. is that
right?

Risman>> Do you mean track differences between the tags? As long as you
have the two tags, you can track the differences, though if the tags
never change then neither will the differences. Remember that if one of
the tags were a branch tag, that will move as long as new revisions are
committed to that branch.

[...]





**********************************************************

MLB.com: Where Baseball is Always On
sparkylee
2009-07-30 22:46:18 UTC
Permalink
snip..............................
> Risman>> Do you mean track differences between the tags? As long as you
> have the two tags, you can track the differences, though if the tags
> never change then neither will the differences. Remember that if one of
> the tags were a branch tag, that will move as long as new revisions are
> committed to that branch.


ok, i think i have it. and again thanks, Mark.

i've been editing and checking in a few files in the branch and
all was going well until this one file.

all i've sampled look like:
===================================================================
File: RELEASENOTES.txt Status: Up-to-date

Working revision: 1.103.2.3
Repository revision: 1.103.2.3 /home/cvs/repository/rcp/
RELEASENOTES.txt,v
Commit Identifier: ocPo4COp3n9HHMXt
Sticky Tag: RCP_5_0_1 (branch: 1.103.2)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_2 (revision: 1.103.2.2)
RCP_5_0_1 (branch: 1.103.2)
RCP_6_0_CVN (revision: 1.105)
RCP_5_0 (revision: 1.103)
RCP_4_9_2 (revision: 1.102)
.....

except this one:
===================================================================
File: RCP.iap_xml Status: Locally Modified

Working revision: 1.6.2.1
Repository revision: 1.6.2.1 /home/cvs/repository/rcp/tools/
install_anywhere/conf/RCP.iap_xml,v
Commit Identifier: veSNKconrX7O6oSt
Sticky Tag: RCP_5_0_1 (revision: 1.6.2.1)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_2 (revision: 1.6.2.1)
RCP_5_0_1 (revision: 1.6.2.1) ????
RCP_6_0_CVN (revision: 1.9)
RCP_5_0 (revision: 1.6)

appears to have escaped being part of the branch.
Risman, Mark
2009-08-04 14:17:47 UTC
Permalink
You're seeing 1.6.2.1 as your working revision because that was your
working revision before you removed that branch. It looks like you
committed something onto the old branch first, though, so you might want
to see what the differences are first (you can run cvs dif -r1.6 on your
working copy to see the differences between that revision on the old
branch and what you have now on the new branch).

Also keep in mind that when you remove a branch, you'll see the branch
tag disappear but all of the revisions that were on that branch are
still there. That's (I assume) why any new branch will have its own
number, rather than reusing the number from the deleted branch.

-----Original Message-----
From: Lee Slaughter [mailto:***@slaughters.com]
Sent: Monday, August 03, 2009 6:45 PM
To: Risman, Mark
Cc: Lee Slaughter
Subject: Re: commiting a sticky file

Risman, Mark wrote:

>I haven't seen all of the steps you've followed, so I don't know why
>that's not on the branch.
>
>
exactly. of course when you are panicked and tend to thrash.....

>To change this, you can remove the revision tag ("cvs tag -d ...") and
>create a new tag which is a branch tag ("cvs tag -b ...") for any such
>files.
>
>
ok, but when i removed the tag and made the branch, i hadn't removed
the RCP_5_0_2 tag first, so when i created branch it ended up with
a funny number looking like it took off from RCP_5_0_2.

so i did a $cvs tag -B -d on both the branch and revision tags.

THEN i created the branch. so now it looks ok to me:

$ cvs status -v RCP.iap_xml | less

===================================================================
File: RCP.iap_xml Status: Needs Merge

Working revision: 1.6.2.1
Repository revision: 1.6
/home/cvs/repository/rcp/tools/install_anywhere/conf/RCP.iap_xml,v
Commit Identifier: (none)
Sticky Tag: RCP_5_0_1 (branch: 1.6.4)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_1 (branch: 1.6.4)
RCP_6_0_CVN (revision: 1.9)
RCP_5_0 (revision: 1.6)
RCP_4_9_2 (revision: 1.5)
RCP_4_9_1 (revision: 1.4)
RCP_4_9_0 (revision: 1.4)

except now it needs a merge, which isn't true since it is a config
file. so i suppose i could delete it and update -C?

tks.
lee

--------------8<--------------------






**********************************************************

MLB.com: Where Baseball is Always On
Risman, Mark
2009-08-04 17:36:00 UTC
Permalink
You won't be able to commit it while it "Needs Merge". You'll need to
run "cvs update" to merge, or erase the file and run "cvs update" again
to get the latest from the repository. You'll then be able to edit or
overwrite your working file and commit as needed, as long as you're
still sticking to the branch you want to commit to.



________________________________

From: Lee Slaughter [mailto:***@slaughters.com]
Sent: Tuesday, August 04, 2009 12:23 PM
To: Risman, Mark
Cc: Lee Slaughter
Subject: Re: commiting a sticky file



Risman, Mark wrote:

You're seeing 1.6.2.1 as your working revision because that was your
working revision before you removed that branch. It looks like you
committed something onto the old branch first, though, so you might want
to see what the differences are first (you can run cvs dif -r1.6 on your
working copy to see the differences between that revision on the old
branch and what you have now on the new branch).


it's a monstrous xml file so i don't want to diff it.
i just want to commit the latest working version.




Also keep in mind that when you remove a branch, you'll see the branch
tag disappear but all of the revisions that were on that branch are
still there.

ah, that's what i suspected.



That's (I assume) why any new branch will have its own
number, rather than reusing the number from the deleted branch.


ok, then, i deduce that we're now ok?

i really appreciate all your help and sticking with me, Mark.

lee





-----Original Message-----
From: Lee Slaughter [mailto:***@slaughters.com]
Sent: Monday, August 03, 2009 6:45 PM
To: Risman, Mark
Cc: Lee Slaughter
Subject: Re: commiting a sticky file

Risman, Mark wrote:



I haven't seen all of the steps you've followed, so I don't know
why
that's not on the branch.




exactly. of course when you are panicked and tend to thrash.....



To change this, you can remove the revision tag ("cvs tag -d
..") and
create a new tag which is a branch tag ("cvs tag -b ...") for
any such
files.




ok, but when i removed the tag and made the branch, i hadn't removed
the RCP_5_0_2 tag first, so when i created branch it ended up with
a funny number looking like it took off from RCP_5_0_2.

so i did a $cvs tag -B -d on both the branch and revision tags.

THEN i created the branch. so now it looks ok to me:

$ cvs status -v RCP.iap_xml | less

===================================================================
File: RCP.iap_xml Status: Needs Merge

Working revision: 1.6.2.1
Repository revision: 1.6
/home/cvs/repository/rcp/tools/install_anywhere/conf/RCP.iap_xml,v
Commit Identifier: (none)
Sticky Tag: RCP_5_0_1 (branch: 1.6.4)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_1 (branch: 1.6.4)
RCP_6_0_CVN (revision: 1.9)
RCP_5_0 (revision: 1.6)
RCP_4_9_2 (revision: 1.5)
RCP_4_9_1 (revision: 1.4)
RCP_4_9_0 (revision: 1.4)

except now it needs a merge, which isn't true since it is a config
file. so i suppose i could delete it and update -C?

tks.
lee

--------------8<--------------------






**********************************************************

MLB.com: Where Baseball is Always On











**********************************************************

MLB.com: Where Baseball is Always On
sparkylee
2009-08-06 17:03:50 UTC
Permalink
i think i'll sum up what i think i've learned to put an end to this
lengthy thread. i want to
thank you, esp. Mark Risman.

the original problem is that we created a branch, a subsequent tag,
and when i checked out the
tag i couldn't commit changes because the files were sticky.

what i have deduced is that when you create a branch, you have to stay
in that branch to
do edits and commits. then of course you can tag, but when you check
out the tag, you have
sticky files and can't commit. so a tag of the branch creates a
static snapshot.

before, in linear development, you could check out the latest tag and
work on it. this was the big
difference for me to learn.

it helps to get to know the revision number schemes, to understand
revision numbers and tag numbers.
and more, that is still sinking in.

lee
sparkylee
2009-07-30 22:48:09 UTC
Permalink
> Risman>> Do you mean track differences between the tags? As long as you
> have the two tags, you can track the differences, though if the tags
> never change then neither will the differences. Remember that if one of
> the tags were a branch tag, that will move as long as new revisions are
> committed to that branch.


ok, i think i have it. and again thanks, Mark.

i've been editing and checking in a few files in the branch and
all was going well until this one file.

all i've sampled look like:
===================================================================
File: RELEASENOTES.txt Status: Up-to-date

Working revision: 1.103.2.3
Repository revision: 1.103.2.3 /home/cvs/repository/rcp/
RELEASENOTES.txt,v
Commit Identifier: ocPo4COp3n9HHMXt
Sticky Tag: RCP_5_0_1 (branch: 1.103.2)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_2 (revision: 1.103.2.2)
RCP_5_0_1 (branch: 1.103.2)
RCP_6_0_CVN (revision: 1.105)
RCP_5_0 (revision: 1.103)
RCP_4_9_2 (revision: 1.102)
.....

except this one:
===================================================================
File: RCP.iap_xml Status: Locally Modified

Working revision: 1.6.2.1
Repository revision: 1.6.2.1 /home/cvs/repository/rcp/tools/
install_anywhere/conf/RCP.iap_xml,v
Commit Identifier: veSNKconrX7O6oSt
Sticky Tag: RCP_5_0_1 (revision: 1.6.2.1)
Sticky Date: (none)
Sticky Options: (none)

Existing Tags:
RCP_5_0_2 (revision: 1.6.2.1)
RCP_5_0_1 (revision: 1.6.2.1) ????
RCP_6_0_CVN (revision: 1.9)
RCP_5_0 (revision: 1.6)

this file somehow has RCP_5_0_1 as a tag, not a branch.
Loading...