sent 20:57:47 08 July 2011, Friday
by Tim Chase:
> 2) use a VCS such as fossil that supports auto-push (though it
> doesn't look like fossil is supported by VCSCommand)
I guess something like
[hooks]
commit.autopush = hg push -r $HG_NODE
does the trick for mercurial (untested). With git hooks it should be also
possible.
There is no need to specially support autopush if hook system is written well
enough.
Original message:
> 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
No comments:
Post a Comment