[PATCH 1 of 2 STABLE] revset: fix the definition of "unstable changesets" for "unstable" predicate

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Sat Jul 28 10:04:17 CDT 2012


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1343487117 -32400
# Branch stable
# Node ID 632fa86aac55f43bf447191a82733702a86c5e73
# Parent  a09cc6aeed4a6d54a3846b6653165fd3b328d1ef
revset: fix the definition of "unstable changesets" for "unstable" predicate

unstable-ness of changesets should be determined by obsolete-ness of
not descendants but ancestors.

diff -r a09cc6aeed4a -r 632fa86aac55 mercurial/revset.py
--- a/mercurial/revset.py	Fri Jul 20 19:08:26 2012 -0400
+++ b/mercurial/revset.py	Sat Jul 28 23:51:57 2012 +0900
@@ -1424,7 +1424,7 @@
 
 def unstable(repo, subset, x):
     """``unstable()``
-    Unstable changesets are non-obsolete with obsolete descendants."""
+    Unstable changesets are non-obsolete with obsolete ancestors."""
     # i18n: "unstable" is a keyword
     getargs(x, 0, 0, _("unstable takes no arguments"))
     unstableset = set(repo.revs('(obsolete()::) - obsolete()'))


More information about the Mercurial-devel mailing list