RE: removing a directory

2002-11-25 Thread Anders Truelsen
Hi Jaya

If you really don't want it to exist in the repository you'll have to
delete it from the repository.
Proceed with care!

Regards,
anders


 -Original Message-
 From: Jaya Kumari [mailto:[EMAIL PROTECTED]]
 Sent: 25. november 2002 08:21
 To: Info-cvs
 Subject: removing a directory
 
 Hi all,
 Pls. help to delete a directory with a hierchary of files.
 I don't want the directory to exist in the repoistory.
 
 Thanks and Regards,
 Jaya
 
 
 
 ___
 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: Problem with partially lost branch information

2002-11-25 Thread Karl-König Königsson
Larry Jones wrote:


Most likely, there is at least one file in each of those directories
where that tag is a revision tag rather than a branch tag.
 

I have found a few files with this problem: I used the cvs graphing 
capability of WinCVS to look for tags instead of branches, but that was 
very time consuming.

I then tried this approach: a file with the branch tag set should have a 
cvs version number with a zero in it; one of the adminstrative numbers. 
I thus did this from the command line:

   find . -type f -exec sh -c cvs -q log {} | grep 
forv_ver1_020311-branch \; -print 2/dev/null |less

Which produces a list with along these lines:

   ./itp/build/b_wceupdate.bat
   forv_ver1_020311-branch: 1.2.0.8
   ./itp/build/b_wceupdate2800.bat
   forv_ver1_020311-branch: 1.26.0.2

A rather brutal approach, you'll agree. Anyway, the odd thing is that I 
have now rid this structure of files with a wrong tagging but the error 
still is there. I wonder: could there be files in the Attic that are 
screwing up my directory structure?

Furthermore: is my very-large-ax approach a good was of searching for 
this error? It there are files in the Attic that are acting up, how am I 
going to find them? Should I search on the raw RCS files in the 
repository instead? How do I adapt my script to do that? (I'm not fluent 
in RCS at all)


--
QUOYNESS (n.) 
The hatefullness of words like 'relionus' and 'easiephit'. 
(The Meaning of Liff, Douglas Adams)




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


Re: check_cvs.pl script

2002-11-25 Thread Rich Bodo

That script seems like something that just escaped Cisco captivity (co
the header).  Is there a plan to release it under a license of some
kind?  Can I use it in my business?  I assume so, but wouldn't want to
assume incorrectly in this case.

-Rich

 
  donald
  On Thu, Nov 21, 2002 at 08:29:18AM +0200, Reinstein, Shlomo wrote:
   Hi,
   I found the check_cvs.pl script in some of the messages in the
  mailing-list.
   Is this script published formally somewhere, or is that a private script
   that was provided only for the cases in those messages?
   Shlomo

-Rich

Rich Bodo | [EMAIL PROTECTED] | 650-964-4678



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



Re: check_cvs.pl script

2002-11-25 Thread Donald Sharp
Yes you can use it in your business, it's not escaped.  It was put 
out there.

donald
On Mon, Nov 25, 2002 at 10:21:50AM -0800, Rich Bodo wrote:
 
 That script seems like something that just escaped Cisco captivity (co
 the header).  Is there a plan to release it under a license of some
 kind?  Can I use it in my business?  I assume so, but wouldn't want to
 assume incorrectly in this case.
 
 -Rich
 
  
   donald
   On Thu, Nov 21, 2002 at 08:29:18AM +0200, Reinstein, Shlomo wrote:
Hi,
I found the check_cvs.pl script in some of the messages in the
   mailing-list.
Is this script published formally somewhere, or is that a private script
that was provided only for the cases in those messages?
Shlomo
 
 -Rich
 
 Rich Bodo | [EMAIL PROTECTED] | 650-964-4678
 


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



Re: Problem with partially lost branch information

2002-11-25 Thread Eric Siegerman
On Mon, Nov 25, 2002 at 02:05:00PM +0100, Karl-König Königsson wrote:
 [...] a file with the branch tag set should have a 
 cvs version number with a zero in it; one of the adminstrative numbers. 
 I thus did this from the command line:
 
 find . -type f -exec sh -c cvs -q log {} | grep 
 forv_ver1_020311-branch \; -print 2/dev/null |less
 [...]
 A rather brutal approach, you'll agree.

That's just the approach I'd have taken; but ouch!  I bet it took
a *long* time.  Try it this way instead:
cvs log | egrep '^Working file:|forv_ver1_020311-branch'

It produces similar output:

Working file: itp/build/b_wceupdate.bat
forv_ver1_020311-branch: 1.2.0.8
Working file: itp/build/foobar.bat
Working file: itp/build/b_wceupdate2800.bat
forv_ver1_020311-branch: 1.26.0.2

Advantages:
  - You'll get the Attic files too, since cvs log with no
arguments DOES display deleted files (caveat; I know that's
true of 1.11.2.1, and I'm fairly sure it's been true for a
long time, but I can't say for sure that it's true of all
versions)

  - It's *lots* faster.  Your way forks at least a couple of
processes per file.

Disadvantage:
  - There'll be spurious filename lines for files without the
tag, e.g. the foobar.bat line in the above sample

 Anyway, the odd thing is that I 
 have now rid this structure of files with a wrong tagging but the error 
 still is there. I wonder: could there be files in the Attic that are 
 screwing up my directory structure?

Maybe.  Or maybe you just need to repair the CVS state (fix the
CVS/Tag files or whatever it was) now that the underlying
condition has gone away (unless you've already tried that; you
don't say).

 Furthermore: is my very-large-ax approach a good was of searching for 
 this error?

Absolutely.  Just sub-optimally implemented :-)

 It there are files in the Attic that are acting up, how am I 
 going to find them? Should I search on the raw RCS files in the 
 repository instead? How do I adapt my script to do that? (I'm not fluent 
 in RCS at all)

cvs log is a wrapper for rlog.  So it'd be something like:
find $CVSROOT/itp -type f -name *,v | xargs rlog | egrep ...
Be warned that this will fail for pathnames containing shell
metacharacters, including spaces (those won't be a problem for
either your original approach or for my cvs log | grep one).
You can either work around that manually, or use GNU findutils as
I've described here recently (search the archives for -print0
[sic]).

--

|  | /\
|-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED]
|  |  /
Just Say No to the faceless cannonfodder stereotype.
- http://www.ainurin.net/ (an Orc site)


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



Changing CVSROOT in CVS/Root of working directory

2002-11-25 Thread mmala
Hi
I am facing a problem.
Actually, right now our DNS is down so for running
client server cvs,I am adding IP address of the
clients as entries in the /etc/hosts file of the
machine where cvs server is running.But we all have
previously checked out working directories;the old
CVSROOT is no longer valid;instead of the server name
we are giving server ip address and updated using 
cvs -d $CVSROOT update
Now in all CVS/Root directories, the new root has
replaced the old one so we no longer have to use -d
each time.But in one machine, this is not
happening.CVS is always reading old CVSROOT and is
giving error 'there is no machine by that name'
I changed  CVSROOT in the autoexec file, rebooted that
machine and did update with -d but in CVS/Root file,
the old CVSROOT remains.How do I change this?The
client is win 98 machine and cvs client is command prompt.

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


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



Re:removing a directory

2002-11-25 Thread mmala

In CVS you can't really remove a directory using a cvs
command.
1.cvs rm all the files in the directory and at the
time of checkout,use cvs -p co to prune any empty
directories.
You may set this as a default option in .cvsrc file.

2.If you really do want to remove the directory, just
remove it manually from the repository and do a fresh
checkout.



removing a directory 
Jaya Kumari [EMAIL PROTECTED] 
Mon, 25 Nov 2002 12:51:12 +0530 

Previous message: Managing Web Page Components with
CVS 
Next message: removing a directory 
Messages sorted by: [ date ] [ thread ] [ subject ] [
author ] 



Hi all,
Pls. help to delete a directory with a hierchary of
files.
I don't want the directory to exist in the repoistory.

Thanks and Regards,
Jaya




__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


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



cvs precommit check utility?

2002-11-25 Thread Don J. Norton



Hello,

I have a need to develop a 
mildly sophisticated pre-commit script to validate that certain users are 
working on certain branches and want/need to maintain the ability to control 
check-ins at various periods during development to directories on a 
branch-by-branch and developer-by-developer basis.

I have not been able to find 
any notable examples of pre-commit scripts to useas examples to accelerate 
the development. Any pointers to good resources or examples to use for 
this would be greatly appreciated.

Thank you,
-Don Norton





cvs does not add hierachy files

2002-11-25 Thread Charles Sun








Hello,



I am a newbie. I added many files and directories in the original check
out. Is there a simple way to add
all of them? ¡°cvs add¡± does not
add hierarchy files and directories.
¡°cvs import¡± will create unnecessary tags on other cvs files. I wish ¡°cvs add¡± has a ¡°-R¡± option.





Charles








Re: Changing CVSROOT in CVS/Root of working directory

2002-11-25 Thread Mike Ayers
mmala wrote:

Hi
I am facing a problem.
Actually, right now our DNS is down so for running
client server cvs,I am adding IP address of the
clients as entries in the /etc/hosts file of the
machine where cvs server is running.But we all have
previously checked out working directories;the old
CVSROOT is no longer valid;instead of the server name
we are giving server ip address and updated using 
cvs -d $CVSROOT update
Now in all CVS/Root directories, the new root has
replaced the old one so we no longer have to use -d
each time.But in one machine, this is not
happening.CVS is always reading old CVSROOT and is
giving error 'there is no machine by that name'
I changed  CVSROOT in the autoexec file, rebooted that
machine and did update with -d but in CVS/Root file,
the old CVSROOT remains.How do I change this?The
client is win 98 machine and cvs client is command prompt.

	Simply remove all the CVS/Root files in that sandbox and do a 
`checkout -d` from the top of the tree.  This will create new CVS/Root 
files with the new root.


/|/|ike




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


Re: cvs does not add hierachy files

2002-11-25 Thread Mike Ayers
Charles Sun wrote:


I am a newbie. I added many files and directories in the original check 
out.  Is there a simple way to add all of them?  ??cvs add?? does not 
add hierarchy files and directories.  ??cvs import?? will create 
unnecessary tags on other cvs files.  I wish ??cvs add?? has a ??-R?? 
option.

	Please do not send HTML mail to technical mailing lists.

	As far as CVS not adding everything new in a tree, this is 
deliberate.  This prevents the inadvertent adding of intermediate 
files and other files that you would not wish to version control. 
This requires you to decide to commit each file.  While this is 
inconvenient, it tends to be, in practice, much less inconvenient than 
the alternative.


/|/|ike




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