just playing with tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cli: move `revsets.log` default to config file

authored by

Martin von Zweigbergk and committed by
Martin von Zweigbergk
3dab92d2 f958957f

+4 -3
+3
cli/src/config/revsets.toml
··· 1 1 # NOTE: ensure you update docs/revsets.md with documentation when 2 2 # adding/updating any of these aliases 3 3 4 + [revsets] 5 + log = "@ | ancestors(immutable_heads().., 2) | trunk()" 6 + 4 7 [revset-aliases] 5 8 'trunk()' = ''' 6 9 latest(
+1 -3
lib/src/settings.rs
··· 205 205 } 206 206 207 207 pub fn default_revset(&self) -> String { 208 - self.config 209 - .get_string("revsets.log") 210 - .unwrap_or_else(|_| "@ | ancestors(immutable_heads().., 2) | trunk()".to_string()) 208 + self.config.get_string("revsets.log").unwrap_or_default() 211 209 } 212 210 213 211 pub fn signature(&self) -> Signature {