Enum jujutsu_lib::revset::RevsetExpression
source · [−]pub enum RevsetExpression {
Show 23 variants
None,
Commits(Vec<CommitId>),
Symbol(String),
Parents(Rc<RevsetExpression>),
Children(Rc<RevsetExpression>),
Ancestors(Rc<RevsetExpression>),
Range {
roots: Rc<RevsetExpression>,
heads: Rc<RevsetExpression>,
},
DagRange {
roots: Rc<RevsetExpression>,
heads: Rc<RevsetExpression>,
},
Heads,
HeadsOf(Rc<RevsetExpression>),
PublicHeads,
Branches,
RemoteBranches,
Tags,
GitRefs,
GitHead,
ParentCount {
candidates: Rc<RevsetExpression>,
parent_count_range: Range<u32>,
},
Description {
needle: String,
candidates: Rc<RevsetExpression>,
},
Author {
needle: String,
candidates: Rc<RevsetExpression>,
},
Committer {
needle: String,
candidates: Rc<RevsetExpression>,
},
Union(Rc<RevsetExpression>, Rc<RevsetExpression>),
Intersection(Rc<RevsetExpression>, Rc<RevsetExpression>),
Difference(Rc<RevsetExpression>, Rc<RevsetExpression>),
}Variants
None
Commits(Vec<CommitId>)
Symbol(String)
Parents(Rc<RevsetExpression>)
Children(Rc<RevsetExpression>)
Ancestors(Rc<RevsetExpression>)
Range
DagRange
Heads
HeadsOf(Rc<RevsetExpression>)
PublicHeads
Branches
RemoteBranches
Tags
GitRefs
GitHead
ParentCount
Description
Author
Committer
Union(Rc<RevsetExpression>, Rc<RevsetExpression>)
Intersection(Rc<RevsetExpression>, Rc<RevsetExpression>)
Difference(Rc<RevsetExpression>, Rc<RevsetExpression>)
Implementations
sourceimpl RevsetExpression
impl RevsetExpression
pub fn none() -> Rc<RevsetExpression>
pub fn all() -> Rc<RevsetExpression>
pub fn symbol(value: String) -> Rc<RevsetExpression>
pub fn commit(commit_id: CommitId) -> Rc<RevsetExpression>
pub fn commits(commit_ids: Vec<CommitId>) -> Rc<RevsetExpression>
pub fn heads() -> Rc<RevsetExpression>
pub fn public_heads() -> Rc<RevsetExpression>
pub fn branches() -> Rc<RevsetExpression>
pub fn remote_branches() -> Rc<RevsetExpression>
pub fn git_refs() -> Rc<RevsetExpression>
pub fn git_head() -> Rc<RevsetExpression>
sourcepub fn heads_of(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
pub fn heads_of(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
Commits in self that don’t have descendants in self.
sourcepub fn parents(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
pub fn parents(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
Parents of self.
sourcepub fn ancestors(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
pub fn ancestors(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
Ancestors of self, including self.
sourcepub fn children(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
pub fn children(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
Children of self.
sourcepub fn descendants(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
pub fn descendants(self: &Rc<RevsetExpression>) -> Rc<RevsetExpression>
Descendants of self, including self.
sourcepub fn dag_range_to(
self: &Rc<RevsetExpression>,
heads: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
pub fn dag_range_to(
self: &Rc<RevsetExpression>,
heads: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
Commits that are descendants of self and ancestors of heads, both
inclusive.
sourcepub fn range(
self: &Rc<RevsetExpression>,
heads: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
pub fn range(
self: &Rc<RevsetExpression>,
heads: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
Commits reachable from heads but not from self.
sourcepub fn with_parent_count(
self: &Rc<RevsetExpression>,
parent_count_range: Range<u32>
) -> Rc<RevsetExpression>
pub fn with_parent_count(
self: &Rc<RevsetExpression>,
parent_count_range: Range<u32>
) -> Rc<RevsetExpression>
Commits in self with number of parents in the given range.
sourcepub fn with_description(
self: &Rc<RevsetExpression>,
needle: String
) -> Rc<RevsetExpression>
pub fn with_description(
self: &Rc<RevsetExpression>,
needle: String
) -> Rc<RevsetExpression>
Commits in self with description containing needle.
Commits in self with author’s name or email containing needle.
sourcepub fn with_committer(
self: &Rc<RevsetExpression>,
needle: String
) -> Rc<RevsetExpression>
pub fn with_committer(
self: &Rc<RevsetExpression>,
needle: String
) -> Rc<RevsetExpression>
Commits in self with committer’s name or email containing needle.
sourcepub fn union(
self: &Rc<RevsetExpression>,
other: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
pub fn union(
self: &Rc<RevsetExpression>,
other: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
Commits that are in self or in other (or both).
sourcepub fn intersection(
self: &Rc<RevsetExpression>,
other: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
pub fn intersection(
self: &Rc<RevsetExpression>,
other: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
Commits that are in self and in other.
sourcepub fn minus(
self: &Rc<RevsetExpression>,
other: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
pub fn minus(
self: &Rc<RevsetExpression>,
other: &Rc<RevsetExpression>
) -> Rc<RevsetExpression>
Commits that are in self but not in other.
pub fn evaluate<'repo>(
&self,
repo: RepoRef<'repo>,
workspace_id: Option<&WorkspaceId>
) -> Result<Box<dyn Revset<'repo> + 'repo>, RevsetError>
Trait Implementations
sourceimpl Clone for RevsetExpression
impl Clone for RevsetExpression
sourcefn clone(&self) -> RevsetExpression
fn clone(&self) -> RevsetExpression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RevsetExpression
impl Debug for RevsetExpression
sourceimpl PartialEq<RevsetExpression> for RevsetExpression
impl PartialEq<RevsetExpression> for RevsetExpression
sourcefn eq(&self, other: &RevsetExpression) -> bool
fn eq(&self, other: &RevsetExpression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RevsetExpression) -> bool
fn ne(&self, other: &RevsetExpression) -> bool
This method tests for !=.
impl Eq for RevsetExpression
impl StructuralEq for RevsetExpression
impl StructuralPartialEq for RevsetExpression
Auto Trait Implementations
impl RefUnwindSafe for RevsetExpression
impl !Send for RevsetExpression
impl !Sync for RevsetExpression
impl Unpin for RevsetExpression
impl UnwindSafe for RevsetExpression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more