feat: set message for multiple revsets
Allows to set the revision message of multiple revisions by passing them as arguments. This only supports simple revisions, such as `@`, `@-`, `xs`, and so on. Comple revisions such as `@..@-` are not supported. Fixes: #5
This commit is contained in:
@@ -107,7 +107,7 @@ impl Prompter for RealPrompts {
|
||||
continue;
|
||||
}
|
||||
|
||||
// parse() only fails on empty — already handled above
|
||||
// parse() only fails on empty - already handled above
|
||||
let Ok(desc) = Description::parse(trimmed) else {
|
||||
println!("❌ Description cannot be empty. Please provide a description.");
|
||||
continue;
|
||||
@@ -269,7 +269,7 @@ mod tests {
|
||||
}
|
||||
|
||||
/// A single CJK character (display width 2) is padded as if it occupies 2 columns,
|
||||
/// not 1 — so the right-hand padding is 70 spaces, not 71
|
||||
/// not 1 - so the right-hand padding is 70 spaces, not 71
|
||||
#[test]
|
||||
fn format_message_box_single_cjk_char() {
|
||||
let result = format_message_box("字");
|
||||
|
||||
Reference in New Issue
Block a user