Bonjour à tous,
J'essaye d'apprendre à utiliser un logiciel de gestion de versions et plus particulièrement Mercurial. Je suis en train de lire le livre "Mercurial The Definitive Guide" de Bryan O'Sullivan qui a l'air d'être une base solide. Cependant j'ai un petit problème de compréhension dans un passage :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
When we clone a repository, Mercurial records the location of the repository we cloned in the .hg/hgrc file of the new repository. If we don’t supply a location to hg pull from or hg push to, those commands will use this location as a default. The hg incoming and hg outgoing commands do so too.

If you open a repository’s .hg/hgrc file in a text editor, you will see contents like the
following:
[paths]
default = http://www.selenic.com/repo/hg

It is possible—and often useful—to have the default location for hg push and hg outgoing be different from those for hg pull and hg incoming. We can do this by adding a default-push entry to the [paths] section of the .hg/hgrc file, as follows:
[paths]
default = http://www.selenic.com/repo/hg
default-push = http://hg.example.com/hg
Mon problème vient du dernier paragraphe, où je ne comprends pas l'intérêt d'avoir un dépôt différent pour le push et le pull. Je peux comprendre l'utilité de faire cela en local, car ça permet de garder un dépôt propre mais quel est l'intérêt de le faire en réseau (si il y en a bien un)?

En espérant que quelqu'un puisse m'aider,
Bonne journée à tous