Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6880853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:01:52+00:00 2026-05-27T05:01:52+00:00

The setup: a laptop L an office server hosting various repositories SOffice a customer’s

  • 0

The setup:

  • a laptop L
  • an office server hosting various repositories SOffice
  • a customer’s database server SCustomer

I’m writing code on L for a customer, and regularly want to push it both to SOffice as well as SCustomer.

I know I could use a changegroup hook to push to a third repository from the second (as described in this answer), but this requires that the second can reach the third network-wise.

In my case, each is behind a firewall, and only my laptop typically accesses both through a VPN (or by being physically there). I could set up the VPN on SOffice to get to SCustomer, but I’d rather not.

Is there a way I can, say, set default to two repositories?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:01:53+00:00Added an answer on May 27, 2026 at 5:01 am

    There’s a MultirepoExtension that adds commands for doing any operation on multiple repositories.

    Or you could create an alias to push to both like:

    [aliases]
    pushboth = !$HG push http://first ; $HG push http://second
    

    or you could create a pre-push hook that pushes to the other one. Something like:

    [hooks]
    pre-push = hg push http://second
    

    But I like (and upvoted) krtek’s answer the most. Just give each a path alias and run push twice with the short names instead of the URLs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to setup a local database on my laptop using python. I saw
Hi I just followed the thoughtbot laptop setup for my Mac Mini Server running
Currently I have a distribution provision setup on my laptop to distribute enterprise app
Currently following is the setup of my wifi connection. Laptop 1 ------> Wifi Router
Trying to setup my laptop to edit and run my C# application which called
I have a local Git repository setup on my laptop. I would like to
I recently installed a fresh development setup on my laptop and now notice that
Here's my setup... Laptop (Mac) - git clone of svn repository Thumb drive -
I just setup a LAMP development server and am still trouble-shooting some things. The
I am setup teamcity on my windows 7 laptop. I can connect to it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.