Commits

Pierre-Yves David committed 869ddfb

obsolete: add a "troubled" revset

returns all changeset with troubles whatever the trouble is.

  • Participants
  • Parent commits b98490b
  • Branches default

Comments (0)

Files changed (1)

File hgext/obsolete.py

         troubles.append('conflicting')
     return tuple(troubles)
 
+### Troubled revset symbol
+
+@eh.revset('troubled')
+def revsetlatecomer(repo, subset, x):
+    """``troubled()``
+    Changesets with troubles.
+    """
+    _ = revset.getargs(x, 0, 0, 'troubled takes no arguments')
+    return list(repo.revs('%ld and (unstable() + latecomer() + conflicting())',
+                          subset))
+
 
 ### Obsolescence graph