Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 829
    • Issues 829
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #4432
Closed
Open
Created Feb 04, 2016 by Bitbucket Importer@bitbucket_importerOwner

Support pushurl

Created originally on Bitbucket by André Klitzing

Mercurial 3.7 uses a new style for [paths] entries. This should be supported, too.

Old

       [paths]
       default = https://example.com/my_path
       default-push = https://example.com/my_path

New

       [paths]
       default = https://example.com/my_path
       default:pushurl = ssh://example.com/my_path

manpage:

   paths
       Assigns symbolic names and behavior to repositories.

       Options are symbolic names defining the URL or directory that is the location of the repository. Example:

       [paths]
       my_server = https://example.com/my_repo
       local_path = /home/me/repo

       These symbolic names can be used from the command line. To pull from my_server: hg pull my_server. To push to local_path: hg push local_path.

       Options containing colons (:) denote sub-options that can influence behavior for that specific path. Example:

       [paths]
       my_server = https://example.com/my_path
       my_server:pushurl = ssh://example.com/my_path

       The following sub-options can be defined:

       pushurl

              The URL to use for push operations. If not defined, the location defined by the path's main entry is used.

       The following special named paths exist:

       default

              The URL or directory to use when no source or remote is specified.

              hg clone will automatically define this path to the location the repository was cloned from.

       default-push

              (deprecated) The URL or directory for the default hg push location.  default:pushurl should be used instead.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking