2017-11-03 1 views

Antwort

4

Ich habe das nicht auf der Stackoverflow noch gefunden (this verwandt ist, aber nicht das, was ich suchte), so antwortete ich meine eigene quetion:

Sie können setzen einen Pfad default:pushurl genannt, angegeben als von hg help config.paths

Also, ein mit .hg/hgrc enthält:

[paths] 
default = https://pull.from.here 
default:pushurl = https://push.to.here 

ergibt:

$ hg pull 
pulling from https://pull.from.here 

$ hg push 
pushing to https://push.to.here 
+0

Es ist ein relativ neues Feature ist so nicht überraschend, es so nicht ist. – ngoldbaum

+1

'default-push' war die alte Schreibweise und wird weiterhin unterstützt. Es wurde in Ihrem Link erwähnt. –

+1

'hg help paths' oder' hg help -c paths' ('hg help config'ist ein bisschen lang) kann helfen. – aflp91

Verwandte Themen