[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vc-mode: initial comments lost if using CVS
From: |
Aaron S. Hawley |
Subject: |
Re: vc-mode: initial comments lost if using CVS |
Date: |
Thu, 25 Aug 2005 12:30:34 -0400 (EDT) |
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 */