unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* VC commands - a little ambiguous to me ??
@ 2007-05-17 19:19 William Case
  2007-05-17 19:42 ` Eric Hanchrow
  0 siblings, 1 reply; 5+ messages in thread
From: William Case @ 2007-05-17 19:19 UTC (permalink / raw)
  To: EMACS List

Hi;

I am working with a remote svn repository.  Up to now VC does what I
expect.

Now I want to do the equivalent of:
svn add (a new directory and sub-directrory)
svn add (a file)
svn move (a different file)

I can't find similar VC commands.

What are they or where do I look?  Already tried emacs info Version
Control and VC.


-- 
Regards Bill

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

* Re: VC commands - a little ambiguous to me ??
  2007-05-17 19:19 William Case
@ 2007-05-17 19:42 ` Eric Hanchrow
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Hanchrow @ 2007-05-17 19:42 UTC (permalink / raw)
  To: help-gnu-emacs


    Now I want to do the equivalent of:
    svn add (a new directory and sub-directrory)

I don't think vc has any commands for that.

    svn add (a file)

That's C-x v v

    svn move (a different file)

I don't think vc has any commands for that, either.

    I can't find similar VC commands.

For those sorts of things that vc doesn't do, I use psvn.el, which you
can get from
http://svn.collab.net/repos/svn/trunk/contrib/client-side/emacs/psvn.el

-- 
But users will not now with glad cries glom on to a language that
gives them no more than what Scheme or Pascal gave them.
        -- Guy Steele, http://www.sun.com/research/jtech/pubs/98-oopsla-growing.ps

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

* Re: VC commands - a little ambiguous to me ??
       [not found] <mailman.783.1179430137.32220.help-gnu-emacs@gnu.org>
@ 2007-05-17 19:55 ` Tassilo Horn
  2007-05-18  0:01   ` William Case
       [not found]   ` <mailman.790.1179447092.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Tassilo Horn @ 2007-05-17 19:55 UTC (permalink / raw)
  To: help-gnu-emacs

William Case <billlinux@rogers.com> writes:

Hi William,

> Now I want to do the equivalent of:
> svn add (a new directory and sub-directrory)
> svn add (a file)

,----[ C-h f vc-register RET ]
| vc-register is an interactive compiled Lisp function in `vc.el'.
| It is bound to C-x v i, <menu-bar> <tools> <vc> <vc-register>.
| (vc-register &optional SET-VERSION COMMENT)
| 
| Register the current file into a version control system.  With prefix
| argument SET-VERSION, allow user to specify initial version level.  If
| COMMENT is present, use that as an initial comment.
| 
| The version control system to use is found by cycling through the list
| `vc-handled-backends'.  The first backend in that list which declares
| itself responsible for the file (usually because other files in that
| directory are already registered under that backend) will be used to
| register the file.  If no backend declares itself responsible, the
| first backend that could register the file is used.
`----


> svn move (a different file)

,----[ C-h f vc-rename-file RET ]
| vc-rename-file is an interactive compiled Lisp function in `vc.el'.
| It is bound to <menu-bar> <tools> <vc> <vc-rename-file>.
| (vc-rename-file OLD NEW)
| 
| Rename file OLD to NEW, and rename its master file likewise.
`----

HTH,
Tassilo
-- 
      "OS's and GUI's come and go, only Emacs has lasting power."
          Per Abrahamsen in <rjbsysc7n1.fsf@zuse.dina.kvl.dk>

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

* Re: VC commands - a little ambiguous to me ??
  2007-05-17 19:55 ` VC commands - a little ambiguous to me ?? Tassilo Horn
@ 2007-05-18  0:01   ` William Case
       [not found]   ` <mailman.790.1179447092.32220.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: William Case @ 2007-05-18  0:01 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: help-gnu-emacs

Thank you Tassilo;

But ...
On Thu, 2007-05-17 at 21:55 +0200, Tassilo Horn wrote:
> William Case <billlinux@rogers.com> writes:
> 
> Hi William,
> 
> > Now I want to do the equivalent of:
> > svn add (a new directory and sub-directrory)
> > svn add (a file)
> 
> ,----[ C-h f vc-register RET ]
> | vc-register is an interactive compiled Lisp function in `vc.el'.
> | It is bound to C-x v i, <menu-bar> <tools> <vc> <vc-register>.
> | (vc-register &optional SET-VERSION COMMENT)
> | 
> | Register the current file into a version control system.  With prefix
> | argument SET-VERSION, allow user to specify initial version level.  If
> | COMMENT is present, use that as an initial comment.
> | 
> | The version control system to use is found by cycling through the list
> | `vc-handled-backends'.  The first backend in that list which declares
> | itself responsible for the file (usually because other files in that
> | directory are already registered under that backend) will be used to
> | register the file.  If no backend declares itself responsible, the
> | first backend that could register the file is used.
> `----
> 
I want to create and add a new empty directory.  When I M-x
make-directory 'ProgramOlympics' and run vc-rename-file, I get
"svn: 'ProgramOlympics' is not a working copy
svn: Can't open file 'ProgramOlympics/.svn/entries': No such file or
directory"

I have also tried to make-directory through C-x v d .. v t, that doesn't
help either.

Alternatively, I can not figure out how to add a new empty directory to
the working copy.  I get the warning "'ProgramOlympics' is a directory;
use file name";(paraphrase).  I need two; an empty directory and
sub-directory added. The empty directory will have some existing svn/VC
files moved to it.  The sub-directory will have some files moved to it
as well, but in the indefinite near future.
 
> 
> > svn move (a different file)
> 
> ,----[ C-h f vc-rename-file RET ]
> | vc-rename-file is an interactive compiled Lisp function in `vc.el'.
> | It is bound to <menu-bar> <tools> <vc> <vc-rename-file>.
> | (vc-rename-file OLD NEW)
> | 
> | Rename file OLD to NEW, and rename its master file likewise.
> `----

I can get the job done using svn in a terminal (or on the command line I
suppose), but I had hoped to do it all without leaving VC emacs.
-- 
Regards Bill

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

* Re: VC commands - a little ambiguous to me ??
       [not found]   ` <mailman.790.1179447092.32220.help-gnu-emacs@gnu.org>
@ 2007-05-18  8:37     ` Tassilo Horn
  0 siblings, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2007-05-18  8:37 UTC (permalink / raw)
  To: help-gnu-emacs

Hi William,

I have to admit that my tips were only shots in the dark. I never used
the vc-commands for more complex tasks. But there's a dired integration
mentioned in the docs and I would wonder if moving and adding files with
their parent directories would be imposible.

Bye,
Tassilo
-- 
* delYsid has mortgage, opportunity and penis in his score file.
<delYsid> thats pretty effective against spam
<Luke> aren't you worried about missing opportunities to mortgage
       your penis?

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

end of thread, other threads:[~2007-05-18  8:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.783.1179430137.32220.help-gnu-emacs@gnu.org>
2007-05-17 19:55 ` VC commands - a little ambiguous to me ?? Tassilo Horn
2007-05-18  0:01   ` William Case
     [not found]   ` <mailman.790.1179447092.32220.help-gnu-emacs@gnu.org>
2007-05-18  8:37     ` Tassilo Horn
2007-05-17 19:19 William Case
2007-05-17 19:42 ` Eric Hanchrow

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