Friday, July 8, 2011

Re: VCSCommand - push/pull

On 07/08/2011 04:35 AM, eleanor wrote:
> Hi, I installed the VCSCommand plugin and all is working fine.
> The only problem is that I have a remote repository and a
> clone working directory. But there are no commands for
> pushing/pulling to/from the remote repository.
>
> I can execute the actual command from vim, but hey: why use
> VCSCommand plugin then at all? I can just execute the commands
> normally.

As best I can tell, the VCSCommand plugin maps writing to a
checkin, not a push. You have a couple options:

1) tweak the VCSCommand plugin so that the command it issues on
saving also does a push. A quick browse of the source suggests
that you could take the underlying VCS-specific file and clone
it, such as cloning "vcshg.vim" to "vcshgpush.vim" and tweaking
that one.

2) use a VCS such as fossil that supports auto-push (though it
doesn't look like fossil is supported by VCSCommand)

I'm guessing this (not auto-pushing) is by design because usually
one expects a write maps to a checkin to *the* repository.
Pushing into other repositories may or may not be what is wanted,
so leaving that as an auxiliary process fits the model.

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: