Changes

Jump to: navigation, search

ReleaseEngineering/TryServer

713 bytes added, 18:03, 9 February 2012
hg phases
These extra steps should no longer be necessary once the server is upgraded to Mercurial 2.1 and configured as "non-publishing" ({{bug|725362}}).
 
==== Utilizing an Extension ====
There is another way to do this that doesn't require quite as much work. You can use the following extension to disable this functionality. Save the following file where you keep extensions (I used /etc/mercurial/extensions/nophases.py):
<pre>
from mercurial import phases
 
def extsetup(ui):
def donothing(*args, **opts):
pass
 
phases.advanceboundary = donothing
phases.visibleheads = lambda repo: repo.heads()
</pre>
 
Now, edit your user .hgrc file so that it loads this extension (~/.hgrc):
<pre>
[extensions]
nophases = /etc/mercurial/extensions/nophases.py
</pre>
 
Now you should be able to perform hg push -f <whatever> without it affecting the phase.
=== Viewing the results ===
Confirm
206
edits

Navigation menu