start hg-commands periodically

15 views
Skip to first unread message

Iuzuz Denker

unread,
Jul 24, 2014, 11:13:09 AM7/24/14
to scmma...@googlegroups.com
Hello!
 
Firstly, thank you for this great tool.
 
I want to create a plugin starting some hg-commands periodically (approximately: "hg pull" all 3 minutes).
There is a scheduler plugin (library) I can use for it, with example.
 
Is there also some good example, how can I start a hg-command from java-code?
 
Is there perhaps an already created plugin known, starting custom hg-commands periodically?
 
Regards
Iuzuz

Sebastian Sdorra

unread,
Jul 28, 2014, 1:56:37 AM7/28/14
to scmma...@googlegroups.com
Hi,
As you mentioned there is the scheduler plugin to executed periodically tasks and here is a small usage example:


A lot of repository action can be done repository type independent with the RepositoryService (http://docs.scm-manager.org/apidocs/1.40/sonia/scm/repository/api/RepositoryService.html). There is already a pull command in the RepsoitoryServer, but this command will currently work only for other SCM-Manager repositories of the same type and in the same instance. If you need a command which is not supported by the RepositoryService, you could use javahg (https://bitbucket.org/aragost/javahg).

Sebastian



--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages