Show More
@@ -875,6 +875,12 b' def node_(repo, subset, x):' | |||||
875 |
|
875 | |||
876 | return [r for r in subset if r == rn] |
|
876 | return [r for r in subset if r == rn] | |
877 |
|
877 | |||
|
878 | def obsolete(repo, subset, x): | |||
|
879 | """``obsolete()`` | |||
|
880 | Mutable changeset with a newer version.""" | |||
|
881 | getargs(x, 0, 0, _("obsolete takes no arguments")) | |||
|
882 | return [r for r in subset if repo[r].obsolete()] | |||
|
883 | ||||
878 | def outgoing(repo, subset, x): |
|
884 | def outgoing(repo, subset, x): | |
879 | """``outgoing([path])`` |
|
885 | """``outgoing([path])`` | |
880 | Changesets not found in the specified destination repository, or the |
|
886 | Changesets not found in the specified destination repository, or the | |
@@ -1369,6 +1375,7 b' symbols = {' | |||||
1369 | "merge": merge, |
|
1375 | "merge": merge, | |
1370 | "min": minrev, |
|
1376 | "min": minrev, | |
1371 | "modifies": modifies, |
|
1377 | "modifies": modifies, | |
|
1378 | "obsolete": obsolete, | |||
1372 | "outgoing": outgoing, |
|
1379 | "outgoing": outgoing, | |
1373 | "p1": p1, |
|
1380 | "p1": p1, | |
1374 | "p2": p2, |
|
1381 | "p2": p2, |
@@ -193,7 +193,7 b' Try to pull markers' | |||||
193 | abort: push includes an obsolete changeset: cdbce2fbb163! |
|
193 | abort: push includes an obsolete changeset: cdbce2fbb163! | |
194 | [255] |
|
194 | [255] | |
195 | $ hg -R tmpd debugobsolete |
|
195 | $ hg -R tmpd debugobsolete | |
196 |
$ hg -R tmpb push tmpd --rev |
|
196 | $ hg -R tmpb push tmpd --rev 'not obsolete()' | |
197 | pushing to tmpd |
|
197 | pushing to tmpd | |
198 | searching for changes |
|
198 | searching for changes | |
199 | adding changesets |
|
199 | adding changesets |
General Comments 0
You need to be logged in to leave comments.
Login now