CLI/cron syncing

16 views
Skip to first unread message

Jonathan Hayward

unread,
Sep 13, 2012, 6:44:29 PM9/13/12
to merc...@selenic.com
From the Linux command line or from a crontab, how can I push changes from a local repository to BitBucket (one way)? Does my .hgrc or other hgrc file need any lines besides:

--
Christos Jonathan Hayward
Christos Jonathan Hayward, an Orthodox Christian author.

Amazon • Author Bio • Email • Facebook • Google Plus • Kindle • LinkedIn • Professional • Twitter • Web • What's New?

I invite you to visit my "theology, literature, and other creative works" site. See one page of my website!

Jonathan Hayward

unread,
Sep 13, 2012, 6:45:16 PM9/13/12
to merc...@selenic.com
I accidentally sent this email when I was trying to post the contents of my .hgrc file:

[ui]
username = Jonathan Hayward <jonathan...@pobox.com>
verbose = True

paul_...@selinc.com

unread,
Sep 13, 2012, 7:25:23 PM9/13/12
to Jonathan Hayward, merc...@selenic.com
Hi,

I would advise using ssh & ssh keys for maximum ease of use.

This should work, modulo you setting up the paths.  It also hardcodes which hg.

@hourly /usr/bin/hg push -R /path/to/repo ssh://user...@server.com/path....


- - -
Regards,
Paul Nathan


mercuria...@selenic.com wrote on 09/13/2012 03:44:29 PM:

> From: Jonathan Hayward <jonathan...@pobox.com>

> To: merc...@selenic.com,
> Date: 09/13/2012 03:44 PM
> Subject: CLI/cron syncing
> Sent by: mercuria...@selenic.com
>
> From the Linux command line or from a crontab, how can I push
> changes from a local repository to BitBucket (one way)? Does my
> .hgrc or other hgrc file need any lines besides:

>
> --

>
> [image removed]

>
> Christos Jonathan Hayward, an Orthodox Christian author.

> Amazon • Author Bio • Email • Facebook • Google Plus • Kindle • LinkedIn • 
> Professional • Twitter • Web • What's New?

> I invite you to visit my "theology, literature, and other creative
> works" site. See one page of my website!

>
> _______________________________________________
> Mercurial mailing list
> Merc...@selenic.com
>
http://selenic.com/mailman/listinfo/mercurial

Timothy Scott

unread,
Sep 14, 2012, 8:51:04 AM9/14/12
to paul_...@selinc.com, merc...@selenic.com
The Bitbucket site includes very good instructions for setting things up via SSH.  Check things out here:


I'm using Bitbucket + TortoiseHg + Win7 + Putty, but assume the Linux instructions are equally good.

Cheers,
--tim
Reply all
Reply to author
Forward
0 new messages