Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error adding file to existing repository

220 views
Skip to first unread message

John Lippiello

unread,
Aug 5, 2002, 1:57:54 PM8/5/02
to
Hi

I have created my first repository and entered a module into
CVS with the tag, "V5-5_2002-07-26". I have this module
checked out using this tag. Today, I discovered that a file
was missing in my original submission to CVS. I am trying to
"add" the file to the repository and it is giving the
following error message (in WinCVS):

----------------------------------------------------------------
cvs add filename.c (in directory E:\PathToFilename\)
cvs server: cannot add file on non-branch tag V5-5_2002-07-26


*****CVS exited normally with code 1*****
----------------------------------------------------------------


I simply want to add the file to the repository and tag it with
the same tag. This seems like a very simple process. I have
a Linux server and WinCVS on a Windows 2000 machine.

Any ideas?

Thanks in Advance
John

George Schlitz

unread,
Aug 5, 2002, 2:13:45 PM8/5/02
to
Select the directory in which the new file resides in the module window (the
leftmost window in WinCVS).
Hit the update button (or "Modify-->Update Selection" on the menu)
Check the "reset any sticky date/tag/'-k' options" checkbox
Click "OK"
Add your file
Commit your file
Tag your file as appropriate

If you want to update the dir with the tag name again, do so with update
button again, specifying tag name as usual.

The problem is just that you can't add a file to a directory that you have
checked out based on a tag name. You have to temporarily make the directory
"latest" (i.e. reset sticky tag) to add your new file.
I hope this helps.

Matt Riechers

unread,
Aug 5, 2002, 2:21:43 PM8/5/02
to
j...@verocel.com wrote:
>
> I am trying to

> "add" the file to the repository and it is giving the
> following error message (in WinCVS):
>
> ----------------------------------------------------------------
> cvs add filename.c (in directory E:\PathToFilename\)
> cvs server: cannot add file on non-branch tag V5-5_2002-07-26

You can't add files to a non-branch tag. Doing this is attempting to
change the past, which defeats the whole purpose of history (file or
otherwise).

> I simply want to add the file to the repository and tag it with
> the same tag.

If you want to maintain a particular version (for bug fixes and such),
use branches instead:
<http://www.cvshome.org/docs/manual/cvs_5.html#SEC54>

-Matt

Jeeva Sarma

unread,
Aug 5, 2002, 3:17:35 PM8/5/02
to
Hi
In your case,since you made a mistake tagging the
first time,you can delete the tag and make the tag
again with the missing file included.Ofcourse you
should not make this a practice as this defeats the
purpose of making the tag in the first place.

Delete the tag using
cvs tag -d 'tagname'


Jeeva Sarma

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

John Lippiello

unread,
Aug 5, 2002, 3:31:23 PM8/5/02
to
Hi

I tried deleting the tag. Then I updated my working directory and it
deleted the files since the tag no longer existed. When I checked the
module out again with no tag, the tag still appears in my working
directory (in WinCVS) and I still cannot add the file to the repository.

Thanks
John

> _______________________________________________
> Info-cvs mailing list
> Info...@gnu.org
> http://mail.gnu.org/mailman/listinfo/info-cvs
>
>

Matt Riechers

unread,
Aug 5, 2002, 3:38:26 PM8/5/02
to
j...@verocel.com wrote:
>
> I tried deleting the tag. Then I updated my working directory and it
> deleted the files since the tag no longer existed. When I checked the
> module out again with no tag, the tag still appears in my working
> directory (in WinCVS) and I still cannot add the file to the repository.

You need to run 'cvs update -A' (reset sticky tags) to move to the
trunk.

-Matt

John Lippiello

unread,
Aug 5, 2002, 4:41:42 PM8/5/02
to
Thanks All

I think I am getting the feel of solving this particular problem.

Thanks Again
John

> -----Original Message-----
> From: info-cv...@gnu.org [mailto:info-cv...@gnu.org]On Behalf Of

0 new messages