* Re: Off topic: help with CVS, please!
2009-02-22 20:55 Off topic: help with CVS, please! Alan Mackenzie
@ 2009-02-22 20:52 ` Chong Yidong
2009-02-22 21:02 ` Tom Tromey
1 sibling, 0 replies; 6+ messages in thread
From: Chong Yidong @ 2009-02-22 20:52 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: emacs-devel
Alan Mackenzie <acm@muc.de> writes:
> Could somebody with a clear head please suggest a recipe to me for
> obtaining 5.286 and committing it, unchanged, over 5.288 to become the
> new head.
Why not use VC? From the *vc-change-log* buffer (C-x v l), type `f' on
the desired revision entry to visit that revision. Then save the buffer
and do `C-x v v' to commit it.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Off topic: help with CVS, please!
@ 2009-02-22 20:55 Alan Mackenzie
2009-02-22 20:52 ` Chong Yidong
2009-02-22 21:02 ` Tom Tromey
0 siblings, 2 replies; 6+ messages in thread
From: Alan Mackenzie @ 2009-02-22 20:55 UTC (permalink / raw)
To: emacs-devel
Hi, Emacs!
Could somebody help me with CVS, please.
I've got the CC Mode repository into a mess. The head of cc-langs.el is
5.288, and contains crud. I want to (somehow) get 5.286 and (somehow)
commit it, so that it becomes head.
I tried deleting cc-langs.el and
# cvs update -r5.286 cc-langs.el
An immediate "cvs update" then failed, without contacting the server or
giving an error message.
I then tried something or other (can't remember exactly what), but
managed to damage CVS/Entries. Then I tried to download 5.286 to
standard output. There doesn't seem to be a nice
simple command like
# cvs get -r5.286 cc-langs.el > /path/to/temp_file.el
, which would just get a file version without having to worry about
fouling anything up.
There's something similar which I tried, namely:
# cvs update -p r5.286 cc-langs.el > /path/to/temp_file.el,
but I'm not convinced I got 5.286, and I'm now too frustrated and
confused to check reliably.
Could somebody with a clear head please suggest a recipe to me for
obtaining 5.286 and committing it, unchanged, over 5.288 to become the
new head.
Thanks in advance!
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Off topic: help with CVS, please!
2009-02-22 20:55 Off topic: help with CVS, please! Alan Mackenzie
2009-02-22 20:52 ` Chong Yidong
@ 2009-02-22 21:02 ` Tom Tromey
2009-02-23 15:14 ` Thien-Thi Nguyen
2009-02-23 18:09 ` Alan Mackenzie
1 sibling, 2 replies; 6+ messages in thread
From: Tom Tromey @ 2009-02-22 21:02 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: emacs-devel
>>>>> "Alan" == Alan Mackenzie <acm@muc.de> writes:
Alan> I tried deleting cc-langs.el and
Alan> # cvs update -r5.286 cc-langs.el
This will check out the revision but also make a sticky tag.
Copy cc-langs.el somewhere safe, then "cvs update -A".
Then copy it back.
Alan> There doesn't seem to be a nice
Alan> simple command like
Alan> # cvs get -r5.286 cc-langs.el > /path/to/temp_file.el
You can use "cvs co -p" for this.
You can also do a reverse merge on a pristine tree:
cvs update -j5.288 -j5.286 cc-langs.el
... or make a reverse patch that way and apply it.
Tom
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Off topic: help with CVS, please!
2009-02-22 21:02 ` Tom Tromey
@ 2009-02-23 15:14 ` Thien-Thi Nguyen
2009-02-23 18:09 ` Alan Mackenzie
1 sibling, 0 replies; 6+ messages in thread
From: Thien-Thi Nguyen @ 2009-02-23 15:14 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: emacs-devel
() Tom Tromey <tromey@redhat.com>
() Sun, 22 Feb 2009 14:02:51 -0700
You can use "cvs co -p" for this.
You can get Emacs to do this (and save to FILENAME.~REVISION~)
with `C-x v ~' (vc-revision-other-window).
thi
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Off topic: help with CVS, please!
2009-02-22 21:02 ` Tom Tromey
2009-02-23 15:14 ` Thien-Thi Nguyen
@ 2009-02-23 18:09 ` Alan Mackenzie
2009-02-24 21:48 ` Stefan Monnier
1 sibling, 1 reply; 6+ messages in thread
From: Alan Mackenzie @ 2009-02-23 18:09 UTC (permalink / raw)
To: Tom Tromey; +Cc: emacs-devel
Hi, Tom!
On Sun, Feb 22, 2009 at 02:02:51PM -0700, Tom Tromey wrote:
> >>>>> "Alan" == Alan Mackenzie <acm@muc.de> writes:
> Alan> I tried deleting cc-langs.el and
> Alan> # cvs update -r5.286 cc-langs.el
> This will check out the revision but also make a sticky tag.
> Copy cc-langs.el somewhere safe, then "cvs update -A".
> Then copy it back.
Done that. It worked!
> Alan> There doesn't seem to be a nice
> Alan> simple command like
> Alan> # cvs get -r5.286 cc-langs.el > /path/to/temp_file.el
> You can use "cvs co -p" for this.
Does cvs checkout work on a single file?
> You can also do a reverse merge on a pristine tree:
> cvs update -j5.288 -j5.286 cc-langs.el
Did that. It worked, too!
> ... or make a reverse patch that way and apply it.
Many thanks! I've now got things consistent again.
> Tom
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Off topic: help with CVS, please!
2009-02-23 18:09 ` Alan Mackenzie
@ 2009-02-24 21:48 ` Stefan Monnier
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-02-24 21:48 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: Tom Tromey, emacs-devel
Alan> # cvs get -r5.286 cc-langs.el > /path/to/temp_file.el
>> You can use "cvs co -p" for this.
> Does cvs checkout work on a single file?
I can never remember where/how `checkout' can be used when working
inside a tree and what it really does, but AFAIK everytime it does
something useful within a tree, the same result can be obtained with
`update' instead.
This is no exception: "cvs update -p -rREV FILE >TEMPFILE".
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-02-24 21:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-22 20:55 Off topic: help with CVS, please! Alan Mackenzie
2009-02-22 20:52 ` Chong Yidong
2009-02-22 21:02 ` Tom Tromey
2009-02-23 15:14 ` Thien-Thi Nguyen
2009-02-23 18:09 ` Alan Mackenzie
2009-02-24 21:48 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).