Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 51563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:46:12+00:00 2026-05-10T16:46:12+00:00

Is there an easy way to get a conflict summary after running a cvs

  • 0

Is there an easy way to get a conflict summary after running a cvs update?

I work on a large project and after doing some work I need to do an update. The list of changes coming back from the cvs update command is several pages long and I’d like to see only the list of conflicts (starts with ‘C’) repeated at the end of the cvs update command output.

The solution needs to work from the command line.

If my normal output is:

M src/file1.txt M src/file2.txt cvs server: conflicts found ... C src/file3.txt M src/file4.txt M src/file5.txt 

I want my new output to be:

M src/file1.txt M src/file2.txt cvs server: conflicts found ... C src/file3.txt M src/file4.txt M src/file5.txt  Conflict Summary: C src/file3.txt 

I want this to be a single command (possibly a short script or alias) that outputs the normal cvs output as it happens followed by a summary of conflicts.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:46:13+00:00Added an answer on May 10, 2026 at 4:46 pm

    Given the specification, it seems that you need a minor adaptation of Martin York’s solution (because that only shows the conflicts and not the normal log information). Something like this – which might be called ‘cvsupd’:

    tmp=${TMPDIR:-/tmp}/cvsupd.$$ trap 'rm -f $tmp; exit 1' 0 1 2 3 13 15 cvs update '$@' | tee $tmp if grep -s '^C' $tmp then     echo     echo Conflict Summary:     grep '^C' $tmp fi rm -f $tmp trap 0 exit 0 

    The trap commands ensure that the log file is not left around. It catches the normal signals – HUP, INT, QUIT, PIPE and TERM (respectively) and 0 traps any other exit from the shell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an easy way, when running a Ruby script, to get it to
If there an easy way to get a completed SQL statement back after parameter
Is there an easy way to get some str/unicode object represented as a big
Is there an easy way to get the Detail ID when doing a Group
Is there an easy way to get a list in JIRA of work done
Is there an easy way to get the URL fragment identifier (everything after the
Is there an easy way to get the number of months(over multiple years) that
Is there a easy way to get an array out of a string (html)
Given a Python object of any kind, is there an easy way to get
Before Django 1.0 there was an easy way to get the admin url of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.