Discussion:
cvs commit: Examining .
Jirong Hu
2009-08-24 15:53:06 UTC
Permalink
I haven't used CVS for some time. But I am not new to SCM tools.

What I did is (in CVS Linux server):
1. Use "adminuser", I added a new directory called projects/project2 to cvs, without run "cvs commit"
2. Use "root", I ran a "cvs update -d" to see that new project2, and added a new file called readme.txt under project2,

Now I can't commit or update anything from both users. Below is the error message:

[***@localhost projects]$ cvs commit
cvs commit: Examining .
cvs commit: Examining project1
cvs commit: Examining project2
[***@localhost projects]$ pwd
/home/adminuser/projects
[***@localhost projects]$ cvs update
cvs update: Updating .
cvs update: Updating project1
cvs update: Updating project2

[***@localhost project2]# cvs commit
cvs commit: Examining .
[***@localhost project2]#

How can I resolve this? And why I can add a new file under a un-committed new directory?

Thanks
Jirong


__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
Risman, Mark
2009-08-24 17:07:26 UTC
Permalink
The cvs "commit" operation does nothing to directories; it only works
for files.

Once a directory is added to the repository, there are no further
operations necessary to add files to, and use, that directory.

-----Original Message-----
From: info-cvs-bounces+mark.risman=***@nongnu.org
[mailto:info-cvs-bounces+mark.risman=***@nongnu.org] On Behalf Of
Jirong Hu
Sent: Monday, August 24, 2009 11:53 AM
To: info-***@gnu.org
Subject: cvs commit: Examining .

I haven't used CVS for some time. But I am not new to SCM tools.

What I did is (in CVS Linux server):
1. Use "adminuser", I added a new directory called projects/project2 to
cvs, without run "cvs commit"
2. Use "root", I ran a "cvs update -d" to see that new project2, and
added a new file called readme.txt under project2,

Now I can't commit or update anything from both users. Below is the
error message:

[***@localhost projects]$ cvs commit
cvs commit: Examining .
cvs commit: Examining project1
cvs commit: Examining project2
[***@localhost projects]$ pwd
/home/adminuser/projects
[***@localhost projects]$ cvs update
cvs update: Updating .
cvs update: Updating project1
cvs update: Updating project2

[***@localhost project2]# cvs commit
cvs commit: Examining .
[***@localhost project2]#

How can I resolve this? And why I can add a new file under a
un-committed new directory?

Thanks
Jirong


__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email
the boot with the All-new Yahoo! Mail. Click on Options in Mail and
switch to New Mail today or register for free at http://mail.yahoo.ca







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

MLB.com: Where Baseball is Always On
Larry Jones
2009-08-24 17:48:26 UTC
Permalink
Post by Jirong Hu
1. Use "adminuser", I added a new directory called projects/project2
to cvs, without run "cvs commit"
Directories are added to the repository immediately, there's no need to
commit.
Post by Jirong Hu
2. Use "root", I ran a "cvs update -d" to see that new project2, and
added a new file called readme.txt under project2,
You should never run CVS as root. By default, CVS will not allow root
to commit any changes. When you add a new file, you need to do ``cvs
add'' to tell CVS that you want it to control it. After you do that,
you'll be able to commit it (as some user other than root).
--
Larry Jones

I've got PLENTY of common sense! I just choose to ignore it. -- Calvin
Loading...