Re: [fossil-users] How to make post-commit hook?

2016-10-14 Thread Svyatoslav Mishyn
(Thu, 13 Oct 08:25) Nickolas Lloyd: > At a cursory glance, it looks like the `fsl' tool would allow you to do > something similar: just define a new `fsl' command that will do the > commit, export, and push all in one step. So, now I just use a function that imitates a post-commit hook. Not perfec

Re: [fossil-users] How to make post-commit hook?

2016-10-13 Thread Nickolas Lloyd
Svyatoslav Mishyn writes: >> I've put together a python script that is called as a git subcommand and >> takes care of all of the synchronization under the hood. Once it's >> dropped in $GIT_EXEC_PATH I just call `git fossil pull' and `git fossil >> push trunk' to interact with a fossil remote. >

Re: [fossil-users] How to make post-commit hook?

2016-10-12 Thread Svyatoslav Mishyn
(Wed, 12 Oct 13:39) Nickolas Lloyd: > I've put together a python script that is called as a git subcommand and > takes care of all of the synchronization under the hood. Once it's > dropped in $GIT_EXEC_PATH I just call `git fossil pull' and `git fossil > push trunk' to interact with a fossil remo

Re: [fossil-users] How to make post-commit hook?

2016-10-12 Thread Nickolas Lloyd
Svyatoslav Mishyn writes: > g2f script syncs changes from git to fossil; > f2g is a reverse version; > they are based on this article: > https://www.fossil-scm.org/index.html/artifact/1e82974b59e2c97c I've put together a python script that is called as a git subcommand and takes care of all of the

Re: [fossil-users] How to make post-commit hook?

2016-10-12 Thread Svyatoslav Mishyn
(Tue, 11 Oct 19:55) Ron W: > On Tue, Oct 11, 2016 at 9:26 AM, Svyatoslav Mishyn > wrote: > > /home/juef/bin/g2f "$repo" > > cd "${fossil_dir}/${repo}" && fossil co trunk > > "fossil co trunk" does a Fossil check out, so I don't see how that updates > the Fossil repo with the git commit. g2f scr

Re: [fossil-users] How to make post-commit hook?

2016-10-11 Thread Ron W
On Tue, Oct 11, 2016 at 9:26 AM, Svyatoslav Mishyn wrote: > > as Commit Script I have this: > tclInvoke catch {exec /home/juef/bin/f2g test} > > but it looks like a commit script is executed before commit: > /home/juef/fossil/test: date >> z && f ci -m f1 > /home/juef/fossil/test: date >> z && f c

Re: [fossil-users] How to make post-commit hook?

2016-10-11 Thread Ron W
On Tue, Oct 11, 2016 at 9:26 AM, Svyatoslav Mishyn wrote: > > in git repo I have this: > /home/juef/git/mirrors/fossil/test: cat .git/hooks/post-commit > #!/bin/sh > > fossil_dir=/home/juef/fossil > repo=test > > /home/juef/bin/g2f "$repo" > cd "${fossil_dir}/${repo}" && fossil co trunk > "fossil

Re: [fossil-users] How to make post-commit hook?

2016-10-11 Thread Joe Mistachkin
Svyatoslav Mishyn wrote: > > but it looks like a commit script is executed before commit: > The script specified on the "xfersetup_commit" page should run right after the database transaction is committed. However, this will not necessarily be after each Fossil commit. Admittedly, the TH1 hook

[fossil-users] How to make post-commit hook?

2016-10-11 Thread Svyatoslav Mishyn
Hi all, I want to automate bidirectional synchronization (Fossil => Git => Fossil). in git repo I have this: /home/juef/git/mirrors/fossil/test: cat .git/hooks/post-commit #!/bin/sh fossil_dir=/home/juef/fossil repo=test /home/juef/bin/g2f "$repo" cd "${fossil_dir}/${repo}" && fossil co trunk