comparison mercurial/revset.py @ 33774:9dcc3529e002

revset: rename unstable into orphan Don't touch unstable volatile set name, only the revset name. The volatile set name will be updated in a later patch. The renaming is done according to https://www.mercurial-scm.org/wiki/CEDVocabulary. Differential Revision: https://phab.mercurial-scm.org/D250
author Boris Feld <boris.feld@octobus.net>
date Thu, 03 Aug 2017 13:48:39 +0200
parents d1b13d4995ed
children f078d7358e90
comparison
equal deleted inserted replaced
33773:6c1a9fd8361b 33774:9dcc3529e002
1917 def tagged(repo, subset, x): 1917 def tagged(repo, subset, x):
1918 return tag(repo, subset, x) 1918 return tag(repo, subset, x)
1919 1919
1920 @predicate('unstable()', safe=True) 1920 @predicate('unstable()', safe=True)
1921 def unstable(repo, subset, x): 1921 def unstable(repo, subset, x):
1922 msg = ("'unstable()' is deprecated, "
1923 "use 'orphan()'")
1924 repo.ui.deprecwarn(msg, '4.4')
1925
1926 return orphan(repo, subset, x)
1927
1928 @predicate('orphan()', safe=True)
1929 def orphan(repo, subset, x):
1922 """Non-obsolete changesets with obsolete ancestors. 1930 """Non-obsolete changesets with obsolete ancestors.
1923 """ 1931 """
1924 # i18n: "unstable" is a keyword 1932 # i18n: "orphan" is a keyword
1925 getargs(x, 0, 0, _("unstable takes no arguments")) 1933 getargs(x, 0, 0, _("orphan takes no arguments"))
1926 unstables = obsmod.getrevs(repo, 'unstable') 1934 unstables = obsmod.getrevs(repo, 'unstable')
1927 return subset & unstables 1935 return subset & unstables
1928 1936
1929 1937
1930 @predicate('user(string)', safe=True) 1938 @predicate('user(string)', safe=True)