mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
Update rustfmt and reformat fbsource
Summary: ``` $ tools/third-party/rustfmt/rustfmt --version rustfmt 1.4.11-nightly (1838235 2019-12-03) ``` Reviewed By: zertosh Differential Revision: D19704678 fbshipit-source-id: fe8707e964495e76746edcb8b68e34fc1411f52a
This commit is contained in:
parent
5e9733d096
commit
34a520536a
@ -23,7 +23,6 @@ mod exceptions {
|
||||
py_exception!(cliparser, OptionRequiresArgument);
|
||||
py_exception!(cliparser, OptionArgumentInvalid);
|
||||
py_exception!(cliparser, OptionAmbiguous);
|
||||
|
||||
}
|
||||
|
||||
pub fn init_module(py: Python, package: &str) -> PyResult<PyModule> {
|
||||
|
@ -93,5 +93,4 @@ mod tests {
|
||||
let blackbox = singleton.deref_mut();
|
||||
assert_eq!(all_entries(blackbox).len(), 3);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -528,17 +528,25 @@ mod tests {
|
||||
"aliasname echo -n a b"
|
||||
);
|
||||
|
||||
assert_eq!(expand(
|
||||
r#"cat /etc/mercurial/hgrc /etc/mercurial/hgrc.d/*.rc ~/.hgrc "`hg root`/.hg/hgrc" 2>/dev/null"#, vec![]),
|
||||
r#"cat /etc/mercurial/hgrc /etc/mercurial/hgrc.d/*.rc ~/.hgrc "`hg root`/.hg/hgrc" 2>/dev/null"#);
|
||||
assert_eq!(expand(
|
||||
r#"for x in `hg log -r 'only(descendants(.) and bookmark(), master)' --template "{node}\n"`;
|
||||
assert_eq!(
|
||||
expand(
|
||||
r#"cat /etc/mercurial/hgrc /etc/mercurial/hgrc.d/*.rc ~/.hgrc "`hg root`/.hg/hgrc" 2>/dev/null"#,
|
||||
vec![]
|
||||
),
|
||||
r#"cat /etc/mercurial/hgrc /etc/mercurial/hgrc.d/*.rc ~/.hgrc "`hg root`/.hg/hgrc" 2>/dev/null"#
|
||||
);
|
||||
assert_eq!(
|
||||
expand(
|
||||
r#"for x in `hg log -r 'only(descendants(.) and bookmark(), master)' --template "{node}\n"`;
|
||||
do echo "Changing to $(hg log -r $x -T '{rev} {desc|firstline}')" && hg up $x && $@;
|
||||
if [ "$?" != "0" ]; then break; fi;
|
||||
done"#, vec!["echo", "1"]),
|
||||
done"#,
|
||||
vec!["echo", "1"]
|
||||
),
|
||||
r#"for x in `hg log -r 'only(descendants(.) and bookmark(), master)' --template "{node}\n"`;
|
||||
do echo "Changing to $(hg log -r $x -T '{rev} {desc|firstline}')" && hg up $x && echo 1;
|
||||
if [ "$?" != "0" ]; then break; fi;
|
||||
done"#);
|
||||
done"#
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -712,5 +712,4 @@ Rebuilt Root log with 3 Root IDs."#
|
||||
}
|
||||
file.write_all(data).unwrap();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -130,5 +130,4 @@ mod tests {
|
||||
assert_eq!(v.capacity(), v.len());
|
||||
assert_eq!(v, vec![6, 5, 4]);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user