[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: cvs command line usage (UNCLASSIFIED)
From: |
Glasgow, Steven Mr CIV USA TRADOC |
Subject: |
RE: cvs command line usage (UNCLASSIFIED) |
Date: |
Fri, 5 Aug 2011 09:20:05 -0500 |
Classification: UNCLASSIFIED
Caveats: NONE
Enter this command....
cvs -q -n update -d >> /tmp/modified.txt
Then...
1) awk '/? /{ print $2 }' /tmp/modified.txt
2) awk '/M /{ print $2 }' /tmp/modified.txt
3 & 4) awk '/U /{ print $2 }' /tmp/modified.txt
Also...
1) awk '/A /{ print $2 }' /tmp/modified.txt
Will show you the files you have added but not yet committed
2) awk '/R /{ print $2 }' /tmp/modified.txt
Will show you the files you have removed but not yet committed
3) awk '/C /{ print $2 }' /tmp/modified.txt
Will show you files that will have conflicts when you update
Steve
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
J.V.
Sent: Sunday, August 07, 2011 4:04 PM
To: address@hidden
Subject: cvs command line usage
How do I show a list of files on my local machine that:
1) files that do not exist in the repo
2) files that are modified locally but have not been committed
3) files that are in the repo but not on my local system
4) files that have been modified in the repo but not (updated) on my
local system
With all of the above, I simply want a single line per file and not alot
of other messages or junk. Just one line per file.
If this is not possible, would I have to resort to writing perl or
something?
J.V.
Classification: UNCLASSIFIED
Caveats: NONE
smime.p7s
Description: S/MIME cryptographic signature