ReleaseEngineering/TryServer: Difference between revisions

Jump to navigation Jump to search
Line 55: Line 55:


These extra steps should no longer be necessary once the server is upgraded to Mercurial 2.1 and configured as "non-publishing" ({{bug|725362}}).
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 ===
=== Viewing the results ===
Confirmed users
206

edits

Navigation menu