Mercurial: Does pushing the changeset in Repo A and somehow does Repo B have it too?

I have a repo on a server with the name “Gold” that exists as my production repo, a repo with the name “Silver” on the server that acts as a dev repo, and then, obviously, one or more repos on my local client. Oddly enough, when I push a change set from my local Dev machine to Gold, Silver also somehow gets the change set. We are running Mercurial on Windows Server 2008R2 on IIS7.5.

Example:

Server (create gold on the server)

  • mkdir gold
  • cd./Gold
  • hg init

Customer (Gold clone for customer)

, .

( Gold in Silver - dev- )

  • cd..
  • hg clone./Gold Silver

( Gold - Silver)

  • echo "Fizz" > buzz.txt
  • hg ci -Am " buzz.txt"
  • hg push

, Gold , Silver - . changeets! , Gold, Silver. - - ?

+3
1

. , , . , ( ), .

( hg clone ./Gold Silver) Mercurial , .

, , :

hg clone --pull ./Gold Silver

, .

, - , , datapoint.

+1

Source: https://habr.com/ru/post/1759008/


All Articles