##// END OF EJS Templates
unstable: do not consider internal phases when computing unstable...
marmoute -
r52017:80bda425 default
parent child Browse files
Show More
@@ -939,7 +939,7 b' def clearobscaches(repo):'
939
939
940 def _mutablerevs(repo):
940 def _mutablerevs(repo):
941 """the set of mutable revision in the repository"""
941 """the set of mutable revision in the repository"""
942 return repo._phasecache.getrevset(repo, phases.mutablephases)
942 return repo._phasecache.getrevset(repo, phases.relevant_mutable_phases)
943
943
944
944
945 @cachefor(b'obsolete')
945 @cachefor(b'obsolete')
@@ -165,6 +165,7 b' phasenumber2.update({phase: phase for ph'
165 phasenumber2.update({b'%i' % phase: phase for phase in phasenames})
165 phasenumber2.update({b'%i' % phase: phase for phase in phasenames})
166 # record phase property
166 # record phase property
167 mutablephases = (draft, secret, archived, internal)
167 mutablephases = (draft, secret, archived, internal)
168 relevant_mutable_phases = (draft, secret) # could be obsolete or unstable
168 remotehiddenphases = (secret, archived, internal)
169 remotehiddenphases = (secret, archived, internal)
169 localhiddenphases = (internal, archived)
170 localhiddenphases = (internal, archived)
170
171
@@ -1001,18 +1001,20 b' Commit is hidden as expected'
1001 summary: A
1001 summary: A
1002
1002
1003 The hidden commit is an orphan but doesn't show up without --hidden
1003 The hidden commit is an orphan but doesn't show up without --hidden
1004 And internal changesets are not considered for unstability.
1004
1005
1005 $ hg debugobsolete `hg id --debug -ir 0`
1006 $ hg debugobsolete `hg id --debug -ir 0`
1006 1 new obsolescence markers
1007 1 new obsolescence markers
1007 obsoleted 1 changesets
1008 obsoleted 1 changesets
1008 $ hg --hidden log -G -r 'unstable()'
1009 $ hg --hidden log -G -r '(0::) - 0'
1009 * changeset: 1:c01c42dffc7f
1010 o changeset: 1:c01c42dffc7f
1010 | tag: tip
1011 | tag: tip
1011 ~ user: test
1012 ~ user: test
1012 date: Thu Jan 01 00:00:00 1970 +0000
1013 date: Thu Jan 01 00:00:00 1970 +0000
1013 instability: orphan
1014 summary: my test internal commit
1014 summary: my test internal commit
1015
1015
1016 $ hg --hidden log -G -r 'unstable()'
1017
1016 $ hg log -G -r 'unstable()'
1018 $ hg log -G -r 'unstable()'
1017
1019
1018
1020
General Comments 0
You need to be logged in to leave comments. Login now