Removing --channel from the changes command

[?]
Nov 23, 2020, 11:12 AM
Q4SVMHAEZQQCBFGPJMWS5H4VXB2HFQREZ3AWGOHFWHLFARUQVPBAC

Dependencies

  • [2] L4JXJHWX pijul/*: reorganize imports and remove extern crate
  • [3] VQPAUKBQ channel switch as an alias to reset
  • [4] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • replacement in pijul/src/commands/channel.rs at line 3
    [4.187014][2.2987:3003]()
    use clap::Clap;
    [4.187014]
    [2.3003]
    use clap::{AppSettings, Clap};
  • edit in pijul/src/commands/channel.rs at line 9
    [4.187037]
    [4.187037]
    #[clap(setting(AppSettings::ColoredHelp))]
  • edit in pijul/src/commands/channel.rs at line 19
    [4.187227]
    [4.187227]
    /// Delete a channel.
    /// The channel must not be the current channel.
  • edit in pijul/src/commands/channel.rs at line 23
    [4.187287]
    [4.187287]
    /// Rename a channel.
  • edit in pijul/src/commands/channel.rs at line 26
    [4.187365]
    [3.935]
    /// Switch to a channel.
    /// There must not be unrecorded changes in the working copy.
  • edit in pijul/src/commands/change.rs at line 14
    [4.189579][4.189579:189638]()
    #[clap(long = "channel")]
    channel: Option<String>,
  • replacement in pijul/src/commands/change.rs at line 21
    [4.189846][4.189846:189929]()
    let channel_name = repo.config.get_current_channel(self.channel.as_ref());
    [4.189846]
    [4.189929]
    let channel_name = repo.config.get_current_channel(None);
  • edit in pijul/src/commands/change.rs at line 32
    [4.190284][4.190284:190285]()
  • replacement in pijul/src/commands/change.rs at line 33
    [4.190342][4.190342:190911]()
    let file_name = |l: &Local, inode: Position<Option<Hash>>| -> String {
    if txn.get_revchanges(&channel, hash).is_some() {
    let inode = Position {
    change: inode.change.unwrap_or(hash),
    pos: inode.pos,
    };
    format!(
    "{}:{}",
    txn.find_youngest_path(&changes, &channel, inode).unwrap().0,
    l.line
    )
    } else {
    format!("{}:{}", l.path, l.line)
    }
    };
    [4.190342]
    [4.190911]
    let file_name = |l: &Local, _| format!("{}:{}", l.path, l.line);