ReleaseEngineering/TryServer: Difference between revisions

Jump to navigation Jump to search
Line 49: Line 49:
<pre>hg phase -f --draft qparent:tip</pre>
<pre>hg phase -f --draft qparent:tip</pre>


==== Disable hg phases with an extension ====
==== Disable hg phases with an outgoing hook ====


Alternatively, you can avoid this rigamarole by disabling hg phases with an extensionCreate a file (e.g. /etc/mercurial/extensions/nophases.py) containing:
Alternatively, you can avoid this rigamarole by disabling hg phases with an outgoing hookAdd the following to your personal .hgrc file (~/.hgrc):


<pre>
<pre>
from mercurial import phases
outgoing = hg phase --force --draft "mq()"
 
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>
</pre>


Confirmed users
206

edits

Navigation menu