Scheduler to auto update remote repository from local repository
Greg Ward
greg-hg at gerg.ca
Sun Oct 2 22:22:09 UTC 2011
On Sun, Oct 2, 2011 at 3:18 AM, Agraj Agranayak
<agraj.agranayak at gmail.com> wrote:
> Hi,
> I am using Ubuntu distro, and have installed mercurial.
> I have cloned a remote repository bitbucket repository on my local machine.
> Now some people have cloned this local repository onto their machines. They
> make regular commits and syncs.
> I am planning to write a scheduler to check this local repository on my
> machine for commits / updates. If anything found, then this local repository
> will push changes to the remote repository.
That won't work so well: usually, pushing to a remote repository
requires authentication. Either you need to enter an SSH passphrase,
or have an SSH private key decrypted in memory using ssh-agent, or
enter an HTTP password. All of these are fairly straightforward when
there is a human at the keyboard. But doing automated unattended
pushes ... not such a good idea if you want to do it securely.
Perhaps you could explain *what* you are trying to accomplish, rather
than *how* you thought of doing it.
Greg
More information about the Mercurial
mailing list