Mercurial > public > mercurial-scm > evolve
diff hgext/evolve.py @ 1443:6c122c975125
evolve: add a hint when the parent working copy become obsolete
This should help people find the right commands to recover from this situation.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 24 Jun 2015 16:37:02 -0700 |
parents | 6a219f8089f9 |
children | a73d1ee48003 |
line wrap: on
line diff
--- a/hgext/evolve.py Tue Jun 23 18:16:21 2015 -0700 +++ b/hgext/evolve.py Wed Jun 24 16:37:02 2015 -0700 @@ -685,6 +685,8 @@ def warnobsolete(): if repo['.'].obsolete(): ui.warn(_('working directory parent is obsolete!\n')) + if (not ui.quiet) and obsolete.isenabled(repo, commandopt): + ui.warn(_('(use "hg evolve" to update to its successor)\n')) wlock = None try: wlock = repo.wlock()