Skip to main content

A simple script & library to handle syncing remote mercuial repositories

Project description

Ever had to keep two mercurial repositories on different machines in sync? Mercurials push & pull help to make this fairly easy, but if you make use of mercurial queues or the histedit extension then it can quickly become tedious. That’s where synchg comes in.

Synchg intends to make syncing two mercurial repositories as simple as possible. Simply run a command, and synchg will take care of the rest.

Requirements

Python 2.7 & Mercurial 2.3 are recommended, though others will probably work.

Synchg depends on these python packages:

It also requires:

  • An ssh client on the path (putty on windows, openssh compatible on other platforms)

  • Access to an SSH server on the remote machine(s)

  • An ssh private key loaded in an ssh agent (pagaent on windows, ssh-agent on other platforms)

  • That the mq extension is enabled on the remote machine(s)

Installation

Synchg and it’s python dependencies can be installed via pip:

$ pip install synchg

Using SyncHg

The synchg script should be run from the command line:

$ synchg remote_host [local_path=None]

Where remote_host is the host you wish to sync with and local_path is the optional path to the local mercurial repository (if missing, the current directory will be assumed)

Information on more options can be found by running:

$ synchg --help

Configuration

On first run of synchg you will be prompted with some configuration options:

Remote source directory

This is the path on the remote under which all your repositories should be found. For example, if you have repositories at /repo/one/ and /repo/two/ then you would set this to /repo/

If you want to change the configuration of synchg, then simply run synchg -c to run the config process again.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SyncHg-0.9.8.tar.gz (10.6 kB view details)

Uploaded Source

File details

Details for the file SyncHg-0.9.8.tar.gz.

File metadata

  • Download URL: SyncHg-0.9.8.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for SyncHg-0.9.8.tar.gz
Algorithm Hash digest
SHA256 b66543e902731a5de78f9b00754a090669ff6cecf0111f28f44eff391954434b
MD5 fc4b38df58ecdafd3c84f4043ec6626a
BLAKE2b-256 1ba679b296ac81ab2137c4529baa0729d906c8f8dbf0c268c8a238a4ced47b62

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page