1. Jason Harris
  2. MacHg
  3. Issues
Issue #289 open

P3D3::Add ability to Set Default Server for a repo

Sarkazein
created an issue

I've run into this a couple of times. I'll be working on a project that suddenly needs to change server repositories. I'll either delete my server bookmark and create a new one, or just edit the existing one.

However, every time I go to push it, the local repository remembers the old server URL. I've traced this to the "hgrc" file in the .hg folder inside my repo. That's storing a default path for the server. Aside from manually editing this, is there a way to change it from the MacHG UI?

Note this is somewhat related to issue <<issue 288>> as both of these would be remedied by having a "Set Default Server" option (as well as live detection of changes to the default server). I've looked around and haven't been able to find one yet.

For reference, I am using: MacHG 0.9.24 OSX 10.6.7

And all my repos are on BitBucket.

Thanks, Riley Mills

Comments (7)

  1. Jason Harris repo owner
    • changed status to open

    This is a good idea to change the default push and default pull servers in the configuration. I hadn't thought about this too much before but I like you idea here. Thanks!

    Thus you should be able to specify a default push and default pull server in the configuration of each local repository.

  2. Anonymous

    Yes, please add this feature! I renamed one of my server repositories recently, and now my local repository defaults to pushing to itself instead of the server repository that it was cloned from. It's quite frustrating to have to change the repository I connect to every time I want to push changes.

  3. Log in to comment