unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Starting a new cvs repo in VC
@ 2011-03-02  9:54 Evans Winner
  2011-03-02 20:50 ` Jorgen Grahn
  0 siblings, 1 reply; 6+ messages in thread
From: Evans Winner @ 2011-03-02  9:54 UTC (permalink / raw)
  To: help-gnu-emacs

This is possible a cvs question, rather than an Emacs
specific question.  I an not too familiar with version
control systems.  I have used RCS from VC some time agp.
Now I would like to start a new cvs repo for a directory
full of files.  What I have read made me think I needed to
visit a file and then do C-x v v and complete on the name of
the vcs backend.  But when I try this and tab for
completion, the list of backends does not include CVS.  I
gather that there used to be a function 'vc-cvs-create-repo
that was hooked in here, but no more (?)  In any case, while
this is from a very recent bzr checkout of Emacs 24, I think
it's much more likely that I am doing something wrong than
that it is a bug; hence I am asking about it here.

I am really unfamiliar with this stuff, but for what it's
worth:

(getenv "CVSROOT") ==> "/home/thorne/bu-cvsroot"

and have done cvs -d /bu-cvsroot init

Is there anything else I need to make sure of?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Starting a new cvs repo in VC
  2011-03-02  9:54 Starting a new cvs repo in VC Evans Winner
@ 2011-03-02 20:50 ` Jorgen Grahn
  2011-03-02 22:11   ` Evans Winner
  0 siblings, 1 reply; 6+ messages in thread
From: Jorgen Grahn @ 2011-03-02 20:50 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 2011-03-02, Evans Winner wrote:
> This is possible a cvs question, rather than an Emacs
> specific question.  I an not too familiar with version
> control systems.  I have used RCS from VC some time agp.
> Now I would like to start a new cvs repo for a directory
> full of files.  What I have read made me think I needed to
> visit a file and then do C-x v v and complete on the name of
> the vcs backend.  But when I try this and tab for
> completion, the list of backends does not include CVS.  I
> gather that there used to be a function 'vc-cvs-create-repo
> that was hooked in here, but no more (?)  In any case, while
> this is from a very recent bzr checkout of Emacs 24, I think
> it's much more likely that I am doing something wrong than
> that it is a bug; hence I am asking about it here.
>
> I am really unfamiliar with this stuff, but for what it's
> worth:
>
> (getenv "CVSROOT") ==> "/home/thorne/bu-cvsroot"
>
> and have done cvs -d /bu-cvsroot init

But that *is* the command to use to start a new CVS repository.
You've already done what you're asking about!

> Is there anything else I need to make sure of?

Earlier you wrote

> Now I would like to start a new cvs repo for a directory
> full of files.

so I guess you want to start a new project/add a new module, within
that repository.

I'd use 'cvs import' from the command line for that.

  % cd my_project
  % cvs import my_project dummy START
  % cd ..
  and then check out a copy of my_project somewhere, and
  delete the original

It's not something you're going to do every day, so you don't really
have to find out if and how Emacs' vc-stuff supports that. (Unless
your goal is to test that part of Emacs.)

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Starting a new cvs repo in VC
  2011-03-02 20:50 ` Jorgen Grahn
@ 2011-03-02 22:11   ` Evans Winner
  2011-03-03  6:10     ` Eli Zaretskii
       [not found]     ` <mailman.10.1299132604.20537.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Evans Winner @ 2011-03-02 22:11 UTC (permalink / raw)
  To: help-gnu-emacs

,------ Jorgen Grahn wrote ------
|   so I guess you want to start a new project/add a new
|   module, within that repository.

|   I'd use 'cvs import' from the command line for that.

|     % cd my_project 
|     % cvs import my_project dummy START 
|     % cd ..  
|     and then check out a copy of my_project somewhere,
|     and delete the original

|   It's not something you're going to do every day, so you
|   don't really have to find out if and how Emacs' vc-stuff
|   supports that. (Unless your goal is to test that part of
|   Emacs.)

Thank you, that is helpful.  It does seem odd, though, that,
starting from a directory that is not under any version
control, C-x v v in a file does offer to create a
new... something... using RCS, or SCCS, Bzr, Git, etc., but
not CVS.  Since the process you outline above is very
straightforward, it seems like just the kind of thing
'vc-next-action would do for you in such a case.

I do have cvs installed, and it's not the end of the world
if I have to do it manually, and I'm not trying to test VC,
actually, just use it.  I was just very surprised VC wasn't
sort of doing the thing I expected, the way it has when I've
used RCS.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Starting a new cvs repo in VC
  2011-03-02 22:11   ` Evans Winner
@ 2011-03-03  6:10     ` Eli Zaretskii
       [not found]     ` <mailman.10.1299132604.20537.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2011-03-03  6:10 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Evans Winner <ego111@gmail.com>
> Newsgroups: gnu.emacs.help
> Date: Wed, 02 Mar 2011 15:11:44 -0700
> 
> It does seem odd, though, that, starting from a directory that is
> not under any version control, C-x v v in a file does offer to
> create a new... something... using RCS, or SCCS, Bzr, Git, etc., but
> not CVS.

This happens because there's no create-repo method implemented for the
CVS backend:

  (vc-find-backend-function 'CVS 'create-repo) => nil

When that happens, Emacs cannot DWYM when you type "C-x v v" for an
unregistered file.  So it only offers you backends which do have a
create-repo method implemented.  Feel free to report that as a bug, at
least in the documentation.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Starting a new cvs repo in VC
       [not found]     ` <mailman.10.1299132604.20537.help-gnu-emacs@gnu.org>
@ 2011-03-03  7:12       ` Evans Winner
  2011-03-03 10:28         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Evans Winner @ 2011-03-03  7:12 UTC (permalink / raw)
  To: help-gnu-emacs

,------ Eli Zaretskii wrote ------

|   This happens because there's no create-repo method
|   implemented for the CVS backend:

|     (vc-find-backend-function 'CVS 'create-repo) => nil

|   When that happens, Emacs cannot DWYM when you type "C-x
|   v v" for an unregistered file.  So it only offers you
|   backends which do have a create-repo method implemented.
|   Feel free to report that as a bug, at least in the
|   documentation.

No, it is a bug in me; I read over section 
(info "(emacs)Registering")
but missed this the first time:

"On the other hand, if there are no files already
registered, Emacs uses the first system from
`vc-handled-backends' that could register the file (for
example, you cannot register a file under CVS if its
directory is not already part of a CVS tree);...."

It looks like, from lisp/ChangeLog.13 the handler function
was removed.

2007-07-20  Stefan Monnier  <monnier@iro.umontreal.ca>

            ...

	* vc-mcvs.el (vc-mcvs-create-repo):
	* vc-cvs.el (vc-cvs-create-repo): Remove.

From a quick perusal of the devel list archives, I am not
sure why it was removed.  But if you don't think this is as
it should be I can post that there.  (I sort of assumed that
if it were really bug I someone else would have noticed in 3
years.)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Starting a new cvs repo in VC
  2011-03-03  7:12       ` Evans Winner
@ 2011-03-03 10:28         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2011-03-03 10:28 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Evans Winner <ego111@gmail.com>
> Newsgroups: gnu.emacs.help
> Date: Thu, 03 Mar 2011 00:12:12 -0700
> 
> It looks like, from lisp/ChangeLog.13 the handler function
> was removed.
> 
> 2007-07-20  Stefan Monnier  <monnier@iro.umontreal.ca>
> 
>             ...
> 
> 	* vc-mcvs.el (vc-mcvs-create-repo):
> 	* vc-cvs.el (vc-cvs-create-repo): Remove.
> 
> >From a quick perusal of the devel list archives, I am not
> sure why it was removed.  But if you don't think this is as
> it should be I can post that there.  (I sort of assumed that
> if it were really bug I someone else would have noticed in 3
> years.)

Feel free to ask for the reasons on emacs-devel.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-03 10:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02  9:54 Starting a new cvs repo in VC Evans Winner
2011-03-02 20:50 ` Jorgen Grahn
2011-03-02 22:11   ` Evans Winner
2011-03-03  6:10     ` Eli Zaretskii
     [not found]     ` <mailman.10.1299132604.20537.help-gnu-emacs@gnu.org>
2011-03-03  7:12       ` Evans Winner
2011-03-03 10:28         ` Eli Zaretskii

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).