Show More
@@ -4992,11 +4992,11 b' def summary(ui, repo, **opts):' | |||||
4992 | ui.status(_('phases: %s\n') % ', '.join(t)) |
|
4992 | ui.status(_('phases: %s\n') % ', '.join(t)) | |
4993 |
|
4993 | |||
4994 | if obsolete.isenabled(repo, obsolete.createmarkersopt): |
|
4994 | if obsolete.isenabled(repo, obsolete.createmarkersopt): | |
4995 |
for trouble in (" |
|
4995 | for trouble in ("orphan", "divergent", "bumped"): | |
4996 | numtrouble = len(repo.revs(trouble + "()")) |
|
4996 | numtrouble = len(repo.revs(trouble + "()")) | |
4997 | # We write all the possibilities to ease translation |
|
4997 | # We write all the possibilities to ease translation | |
4998 | troublemsg = { |
|
4998 | troublemsg = { | |
4999 |
" |
|
4999 | "orphan": _("orphan: %d changesets"), | |
5000 | "divergent": _("content-divergent: %d changesets"), |
|
5000 | "divergent": _("content-divergent: %d changesets"), | |
5001 | "bumped": _("phase-divergent: %d changesets"), |
|
5001 | "bumped": _("phase-divergent: %d changesets"), | |
5002 | } |
|
5002 | } |
@@ -1919,10 +1919,18 b' def tagged(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: " |
|
1932 | # i18n: "orphan" is a keyword | |
1925 |
getargs(x, 0, 0, _(" |
|
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 |
@@ -604,7 +604,7 b' Test that rewriting leaving instability ' | |||||
604 | babar |
|
604 | babar | |
605 |
|
605 | |||
606 | $ hg commit --amend |
|
606 | $ hg commit --amend | |
607 |
$ hg log -r ' |
|
607 | $ hg log -r 'orphan()' | |
608 | changeset: 18:b99e5df575f7 |
|
608 | changeset: 18:b99e5df575f7 | |
609 | branch: a |
|
609 | branch: a | |
610 | parent: 11:3334b7925910 |
|
610 | parent: 11:3334b7925910 |
@@ -223,12 +223,12 b' Test that rewriting leaving instability ' | |||||
223 | $ echo c >> c |
|
223 | $ echo c >> c | |
224 | $ hg histedit --continue |
|
224 | $ hg histedit --continue | |
225 |
|
225 | |||
226 |
$ hg log -r ' |
|
226 | $ hg log -r 'orphan()' | |
227 | 11:c13eb81022ca f (no-eol) |
|
227 | 11:c13eb81022ca f (no-eol) | |
228 |
|
228 | |||
229 | stabilise |
|
229 | stabilise | |
230 |
|
230 | |||
231 |
$ hg rebase -r ' |
|
231 | $ hg rebase -r 'orphan()' -d . | |
232 | rebasing 11:c13eb81022ca "f" |
|
232 | rebasing 11:c13eb81022ca "f" | |
233 | $ hg up tip -q |
|
233 | $ hg up tip -q | |
234 |
|
234 |
@@ -527,7 +527,7 b' detect outgoing obsolete and unstable' | |||||
527 | update: 1 new changesets, 2 branch heads (merge) |
|
527 | update: 1 new changesets, 2 branch heads (merge) | |
528 | phases: 3 draft |
|
528 | phases: 3 draft | |
529 | orphan: 1 changesets |
|
529 | orphan: 1 changesets | |
530 |
$ hg log -G -r ':: |
|
530 | $ hg log -G -r '::orphan()' | |
531 | @ 5:cda648ca50f5 (draft orphan) [tip ] add original_e |
|
531 | @ 5:cda648ca50f5 (draft orphan) [tip ] add original_e | |
532 | | |
|
532 | | | |
533 | x 4:94b33453f93b (draft *obsolete*) [ ] add original_d |
|
533 | x 4:94b33453f93b (draft *obsolete*) [ ] add original_d | |
@@ -910,7 +910,7 b' Several troubles on the same changeset (' | |||||
910 | $ hg debugobsolete `getid obsolete_e` |
|
910 | $ hg debugobsolete `getid obsolete_e` | |
911 | obsoleted 1 changesets |
|
911 | obsoleted 1 changesets | |
912 | $ hg debugobsolete `getid original_c` `getid babar` |
|
912 | $ hg debugobsolete `getid original_c` `getid babar` | |
913 |
$ hg log --config ui.logtemplate= -r 'bumped() and |
|
913 | $ hg log --config ui.logtemplate= -r 'bumped() and orphan()' | |
914 | changeset: 7:50c51b361e60 |
|
914 | changeset: 7:50c51b361e60 | |
915 | user: test |
|
915 | user: test | |
916 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
916 | date: Thu Jan 01 00:00:00 1970 +0000 | |
@@ -925,7 +925,7 b' test the "obsolete" templatekw' | |||||
925 |
|
925 | |||
926 | test the "troubles" templatekw |
|
926 | test the "troubles" templatekw | |
927 |
|
927 | |||
928 |
$ hg log -r 'bumped() and |
|
928 | $ hg log -r 'bumped() and orphan()' | |
929 | 7:50c51b361e60 (draft orphan phase-divergent) [ ] add babar |
|
929 | 7:50c51b361e60 (draft orphan phase-divergent) [ ] add babar | |
930 |
|
930 | |||
931 | test the default cmdline template |
|
931 | test the default cmdline template | |
@@ -947,7 +947,7 b' test the default cmdline template' | |||||
947 |
|
947 | |||
948 | test summary output |
|
948 | test summary output | |
949 |
|
949 | |||
950 |
$ hg up -r 'bumped() and |
|
950 | $ hg up -r 'bumped() and orphan()' | |
951 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
951 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
952 | $ hg summary |
|
952 | $ hg summary | |
953 | parent: 7:50c51b361e60 (orphan, phase-divergent) |
|
953 | parent: 7:50c51b361e60 (orphan, phase-divergent) |
General Comments 0
You need to be logged in to leave comments.
Login now