Quick help with CVS?

Started by Josh Berkusover 22 years ago4 messagesdocs
Jump to latest
#1Josh Berkus
josh@agliodbs.com

Folks,

I can't seem to find the CVS command for telling a single file to revert to
the version in the repository. Help?

--
-Josh Berkus
Aglio Database Solutions
San Francisco

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Josh Berkus (#1)
Re: Quick help with CVS?

Josh Berkus writes:

I can't seem to find the CVS command for telling a single file to revert to
the version in the repository. Help?

It would normally be cvs update -A filename, but the postgresql.org CVS
server doesn't support this. So I suggest 'rm && cvs update'.

--
Peter Eisentraut peter_e@gmx.net

#3Roberto Mello
rmello@cc.usu.edu
In reply to: Josh Berkus (#1)
Re: Quick help with CVS?

On Wed, Oct 22, 2003 at 02:49:27PM -0700, Josh Berkus wrote:

Folks,

I can't seem to find the CVS command for telling a single file to revert to
the version in the repository. Help?

If you don't care about yor modifications, you can just rm the file then
"cvs update -Pd" to re-add it from the repository.

There are other ways too. See the CVS red book (available online).

-Roberto

-- 
+----|        Roberto Mello   -    http://www.brasileiro.net/  |------+
+       Computer Science Graduate Student, Utah State University      +
+       USU Free Software & GNU/Linux Club - http://fslc.usu.edu/     +
:.:..::..:::.:::::..:..:.:..:..::::.:...:: => BRAILE TAGLINE!
#4The Hermit Hacker
scrappy@hub.org
In reply to: Peter Eisentraut (#2)
Re: Quick help with CVS?

On Thu, 23 Oct 2003, Peter Eisentraut wrote:

Josh Berkus writes:

I can't seem to find the CVS command for telling a single file to revert to
the version in the repository. Help?

It would normally be cvs update -A filename, but the postgresql.org CVS

Huh? Works for me:

%cvs update -rREL7_4_BETA4 HISTORY
U HISTORY
%cvs status HISTORY
===================================================================
File: HISTORY Status: Up-to-date

Working revision: 1.219 Thu Oct 23 00:16:19 2003
Repository revision: 1.219 /cvsroot/pgsql-server/HISTORY,v
Sticky Tag: REL7_4_BETA4 (revision: 1.219)
Sticky Date: (none)
Sticky Options: (none)

%cvs update -A HISTORY
U HISTORY
%cvs status HISTORY
===================================================================
File: HISTORY Status: Up-to-date

Working revision: 1.222 Thu Oct 23 00:16:29 2003
Repository revision: 1.222 /cvsroot/pgsql-server/HISTORY,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)