Automatically format `pijul` crate

finchie
Jul 13, 2023, 4:07 PM
Y6TBQN7MFWX4SKJM2UGDGR4UMMDEO4TPNNJZKZWHEBTW7MPX4WWQC

Dependencies

  • [2] WFBYDQB4 fixing log --description
  • [3] 7P7G4J5Z Parse argument of `pijul log --output-format` strictly
  • [4] 2TWWWCU4 Fixing a warning related to an updated in `chrono`
  • [5] QY4E6CLE Replacing a panic with a proper error
  • [6] MDY344ZZ Options to use Patience diff instead of Myers
  • [7] QSTVUSKX Updating the protocol to output a blank line if there are no identities
  • [8] STOFOQI4 Fixing a bug in `pijul dependents` where non-dependents could be listed (and making the command deterministic)
  • [9] 7GQGVFEA making `pijul client` more robust to errors
  • [10] BV4PLHOV Remove dependency on `once_cell`
  • [11] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [12] A3RM526Y Integrating identity malleability
  • [13] 5E2AB2YL Fixing a conflict
  • [14] IKZBGTGQ Handle absence of keyring as warning rather than error
  • [15] LZOGKBJX new command `pijul client` for authenticating to a HTTP server
  • [16] I24UEJQL Various post-fire fixes
  • [17] QL6K2ZM3 Tags
  • [18] UMF6N7CZ Keyring 2.0
  • [19] 6U42MTEZ Fixing log -- filters, along with performance improvements
  • [20] 6ARU5AQ7 Improving the `pijul client` command: printing the URL + styling the page
  • [21] KWD6K4F7 Handle absence of keyring for password creation
  • [22] U6TQX5Z2 pager function respects cli option and user config files, PAGER env var
  • [23] 4KJ45IJL Implement new identity management
  • [24] 44RUBHRE Only re-prove identity when credentials change
  • [25] VWJ2JL63 Adding a `pijul dependents` command to list the transitive closure of the reverse dependency relation
  • [26] F2S6XETO Fixing log --hash-only
  • [27] LJFJEX43 Fixing newline issues in the protocol over OpenSSH
  • [28] XRXPK45N Making `pijul dependents` deterministic
  • [29] YV63XF6Z Fixing a conflict
  • [30] EEBKW7VT Keys and identities
  • [31] OU6JOR3C Add path filtering for log, add json output for log
  • [32] FY6SDCTO Readibility improvements in `pijul client`
  • [33] 4OJWMSOW Fully replace crate::Identity
  • [34] UAXGGNAZ Improve command feedback

Change contents

  • edit in pijul/src/identity/mod.rs at line 57
    [11.17299][10.0:25]()
    use std::sync::OnceLock;
  • edit in pijul/src/identity/mod.rs at line 58
    [11.2141]
    [11.17299]
    use std::sync::OnceLock;
  • replacement in pijul/src/identity/mod.rs at line 133
    [11.4106][11.280:382]()
    if let Ok(password) = keyring::Entry::new("pijul", name).and_then(|x| x.get_password()) {
    [11.4106]
    [11.4192]
    if let Ok(password) = keyring::Entry::new("pijul", name).and_then(|x| x.get_password())
    {
  • replacement in pijul/src/identity/mod.rs at line 149
    [11.4743][11.383:496]()
    if let Err(e) = keyring::Entry::new("pijul", name).and_then(|x| x.set_password(&password_attempt)) {
    [11.4743]
    [11.317]
    if let Err(e) =
    keyring::Entry::new("pijul", name).and_then(|x| x.set_password(&password_attempt))
    {
  • replacement in pijul/src/identity/mod.rs at line 272
    [11.7658][11.497:613]()
    if let Err(e) = keyring::Entry::new("pijul", &self.name).and_then(|x| x.set_password(&user_password)) {
    [11.7658]
    [11.488]
    if let Err(e) = keyring::Entry::new("pijul", &self.name)
    .and_then(|x| x.set_password(&user_password))
    {
  • edit in pijul/src/identity/create.rs at line 8
    [11.28402]
    [11.28402]
    use crate::config;
  • edit in pijul/src/identity/create.rs at line 13
    [11.28571][11.8736:8770]()
    use thrussh_keys::key::PublicKey;
  • replacement in pijul/src/identity/create.rs at line 14
    [10.352][11.31:50](),[11.31][11.31:50]()
    use crate::config;
    [10.352]
    [11.28571]
    use thrussh_keys::key::PublicKey;
  • replacement in pijul/src/commands/tag.rs at line 290
    [11.5248][4.0:110]()
    chrono::DateTime::from_utc(chrono::NaiveDateTime::from_timestamp_opt(t, 0).unwrap(), chrono::Utc)
    [11.5248]
    [11.5345]
    chrono::DateTime::from_utc(
    chrono::NaiveDateTime::from_timestamp_opt(t, 0).unwrap(),
    chrono::Utc,
    )
  • replacement in pijul/src/commands/record.rs at line 360
    [11.14343][6.558:758]()
    if self.patience {
    libpijul::Algorithm::Patience
    } else {
    libpijul::Algorithm::default()
    },
    [11.14343]
    [11.14343]
    if self.patience {
    libpijul::Algorithm::Patience
    } else {
    libpijul::Algorithm::default()
    },
  • replacement in pijul/src/commands/protocol.rs at line 413
    [11.2669][7.492:524]()
    return Ok(true)
    [11.2669]
    [11.2669]
    return Ok(true);
  • replacement in pijul/src/commands/log.rs at line 321
    [11.410][11.410:507]()
    let mut reverse_log = self.txn.reverse_log(&*self.channel_ref.read(), None)?.peekable();
    [11.410]
    [11.507]
    let mut reverse_log = self
    .txn
    .reverse_log(&*self.channel_ref.read(), None)?
    .peekable();
  • replacement in pijul/src/commands/log.rs at line 443
    [11.13977][2.27:115]()
    description: if self.cmd.descriptions { header.description } else { None },
    [11.13977]
    [11.14022]
    description: if self.cmd.descriptions {
    header.description
    } else {
    None
    },
  • replacement in pijul/src/commands/log.rs at line 471
    [3.322][3.322:358](),[3.358][11.2380:2450](),[11.14431][11.2380:2450]()
    OutputFormat::Json => {
    serde_json::to_writer_pretty(&mut stdout, &log_iter)?
    [3.322]
    [11.14521]
    OutputFormat::Json => serde_json::to_writer_pretty(&mut stdout, &log_iter)?,
    OutputFormat::Plaintext => {
    log_iter.for_each(|entry| match write!(&mut stdout, "{}", entry) {
    Ok(_) => Ok(()),
    Err(e) if e.kind() == std::io::ErrorKind::BrokenPipe => Ok(()),
    Err(e) => Err(e),
    })?
  • edit in pijul/src/commands/log.rs at line 479
    [11.14535][3.359:465](),[3.465][11.2535:2699](),[11.2535][11.2535:2699]()
    OutputFormat::Plaintext => log_iter.for_each(|entry| match write!(&mut stdout, "{}", entry) {
    Ok(_) => Ok(()),
    Err(e) if e.kind() == std::io::ErrorKind::BrokenPipe => Ok(()),
    Err(e) => Err(e),
    })?,
  • replacement in pijul/src/commands/identity.rs at line 443
    [11.19585][11.1057:1165]()
    if let Err(e) = Entry::new("pijul", &identity.name).and_then(|x| x.delete_password()) {
    [11.19585]
    [11.108]
    if let Err(e) =
    Entry::new("pijul", &identity.name).and_then(|x| x.delete_password())
    {
  • edit in pijul/src/commands/dependents.rs at line 1
    [11.243][11.244:288]()
    use std::path::PathBuf;
    use std::io::Write;
  • edit in pijul/src/commands/dependents.rs at line 3
    [11.323]
    [11.323]
    use std::io::Write;
    use std::path::PathBuf;
  • replacement in pijul/src/commands/dependents.rs at line 37
    [8.450][8.450:480]()
    return Ok(())
    [8.450]
    [11.1076]
    return Ok(());
  • replacement in pijul/src/commands/dependents.rs at line 65
    [8.856][8.856:886]()
    break
    [8.856]
    [8.886]
    break;
  • replacement in pijul/src/commands/debug.rs at line 43
    [11.21392][11.21392:21427](),[11.21427][5.0:74]()
    let (pos, _) = txn
    .follow_oldest_path(&repo.changes, &channel, &root)?;
    [11.21392]
    [11.21530]
    let (pos, _) = txn.follow_oldest_path(&repo.changes, &channel, &root)?;
  • edit in pijul/src/commands/client.rs at line 3
    [11.4588]
    [11.4588]
    use crate::config::global_config_dir;
    use hyper::service::{make_service_fn, service_fn};
    use hyper::{Body, Request, Response, Server};
  • edit in pijul/src/commands/client.rs at line 8
    [11.4644][11.4644:4773]()
    use hyper::{Body, Request, Response, Server};
    use hyper::service::{make_service_fn, service_fn};
    use tokio::sync::mpsc::channel;
  • replacement in pijul/src/commands/client.rs at line 9
    [11.4792][11.4792:4830]()
    use crate::config::global_config_dir;
    [11.4792]
    [11.4830]
    use tokio::sync::mpsc::channel;
  • edit in pijul/src/commands/client.rs at line 20
    [11.5032][11.5032:5033]()
  • replacement in pijul/src/commands/client.rs at line 29
    [11.5461][11.5461:5495]()
    return Ok(())
    [11.5461]
    [11.5495]
    return Ok(());
  • edit in pijul/src/commands/client.rs at line 36
    [11.5610][11.5610:5611]()
  • replacement in pijul/src/commands/client.rs at line 65
    [11.6965][11.6965:7011]()
    .unwrap()
    [11.6965]
    [11.7011]
    .unwrap(),
  • replacement in pijul/src/commands/client.rs at line 80
    [9.60][11.11272:11362](),[11.7541][11.11272:11362]()
    eprintln!("If the URL doesn't open automatically, please visit {}", url);
    [9.60]
    [11.7541]
    eprintln!(
    "If the URL doesn't open automatically, please visit {}",
    url
    );
  • replacement in pijul/src/commands/client.rs at line 85
    [11.7598][11.7598:7623]()
    select!{
    [11.7598]
    [11.7623]
    select! {
  • replacement in pijul/src/commands/client.rs at line 111
    [11.8334][11.8334:8356]()
    break
    [11.8334]
    [11.8356]
    break;