unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Aaron S. Hawley" <Aaron.Hawley@uvm.edu>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: vc-mode: initial comments lost if using CVS
Date: Thu, 25 Aug 2005 12:30:34 -0400 (EDT)	[thread overview]
Message-ID: <Pine.A41.4.58.0508251203350.78214@gnu.uvm.edu> (raw)
In-Reply-To: <1124968223.23992.241452312@webmail.messagingengine.com>


I can't confirm the behavior of the missing change comment, however I can
confirm a missing description when the file is added outside of Emacs (and
without a -m message).  I'm assuming that your scenario entails adding the
file to CVS from the command-line rather than Emacs.  It seems Emacs can
register files to CVS ("add") with `vc-next-action' (C-x v v).

I've tried to reproduce the situation with a CVS module "vc-mode-test"
created from scratch (perhaps others know a quicker way of creating a
minimal CVS repository). I do the "add" and "commit" from within Emacs.
The description and change comment show up in the changelog.  Can you
verify this?

$ mkdir ~/cvs
$ export CVSROOT=$HOME/cvs
$ cvs init
$ cd /tmp
$ mkdir vc-mode-test
$ cd vc-mode-test
$ cvs import -m"Created directory structure" vc-mode-test vc-mode test

No conflicts created by this import

$ cd ..
$ cvs vc-mode-test
CVS
$ cd -
$ emacs foo.txt

In Emacs,

Set vc-initial-comment to non-nil with `M-: (setq vc-initial-comment t)'.
Register the file (`cvs add') with `C-x v v' and enter a description.
Check-in the initial revision (`cvs commit') with `C-x v v' and enter a
change comment.

Viewing the changelog with `C-x v l' shows:

RCS file: /home/ashawley/cvs/vc-mode-test/foo.txt,v
Working file: foo.txt
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
An added file.

----------------------------
revision 1.1
date: 2005-08-25 16:18:43 +0000;  author: ashawley;  state: Exp;
Initial comment.

Hope that helps.
/a

On Thu, 25 Aug 2005, era eriksson wrote:

> ...
>
> However, under CVS, the file is only "added" but not "committed" at this
> point. The next C-x v v will ask for a commit comment, and actually
> commit the current file to the repository.
>
> Now, under CVS, if you type C-x v l, the description: field will be
> empty, and there will be no trace of your initial comment.
>
> This has been in Emacs vc-mode for as long as I've been trying to use
> this feature.
>
> /* era */

  reply	other threads:[~2005-08-25 16:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-25 11:10 vc-mode: initial comments lost if using CVS era eriksson
2005-08-25 16:30 ` Aaron S. Hawley [this message]
2005-08-26  6:09   ` era eriksson
2005-08-26 13:07     ` Aaron S. Hawley
2005-08-26 18:39       ` era eriksson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.A41.4.58.0508251203350.78214@gnu.uvm.edu \
    --to=aaron.hawley@uvm.edu \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).