Thread: Quick help with CVS?

Quick help with CVS?

From
Josh Berkus
Date:
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


Re: Quick help with CVS?

From
Peter Eisentraut
Date:
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


Re: Quick help with CVS?

From
Roberto Mello
Date:
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!

Re: Quick help with CVS?

From
"Marc G. Fournier"
Date:

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)