Move `pijul::DEFAULT_CHANNEL` to `libpijul`

finchie
Jul 14, 2023, 2:25 PM
Y2Y4OOIECVVLL5KIUVHIWJTGPADACCZZHUFGHTLSWHXS5UJ5FD4QC

Dependencies

  • [2] E6IKUIPD Command to delete a tag
  • [3] YXAVFTPP Allowing vertex buffer to use references to the transaction, by changing `output::output` to take an ArcTxn<T> instead of a simple T
  • [4] LZOGKBJX new command `pijul client` for authenticating to a HTTP server
  • [5] STOFOQI4 Fixing a bug in `pijul dependents` where non-dependents could be listed (and making the command deterministic)
  • [6] DX2FO4HZ Tag CLI cleanup
  • [7] ABQDWHNG Migrate from `pijul::repository` to `pijul-repository`
  • [8] ZDK3GNDB Tag transactions (including a massive refactoring of errors)
  • [9] L4JXJHWX pijul/*: reorganize imports and remove extern crate
  • [10] 5OGOE4VW Store the current channel in the pristine
  • [11] 4KJ45IJL Implement new identity management
  • [12] DO2Y5TY5 Tag synchronisation
  • [13] BZSC7VMY address clippy lints
  • [14] A6R6SGCP Fixing a panic in `pijul change`
  • [15] V6J6DTJC Do not compute the entire diff if all we want is --json --untracked
  • [16] AEPEFS7O Write help for each argument
  • [17] 6F6AAHK4 Simplifying pijul::commands::log, and fixing Broken Pipe errors
  • [18] RFLKHQ2Y First read all stdin when applying a patch, in order to avoid blocking
  • [19] 76PCXGML Pushing to, and pulling from the local repository
  • [20] A3RM526Y Integrating identity malleability
  • [21] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [22] VWJ2JL63 Adding a `pijul dependents` command to list the transitive closure of the reverse dependency relation
  • [23] MEK57BAD Optional user in ssh_remote, allows to fix the key proof in `pijul id ed`
  • [24] WZVCLZKY address clippy lints
  • [25] ZBNKSYA6 Fixing a bus error when starting a transaction on a full disk
  • [26] AAXP2534 Tags: completing the subcommand
  • [27] EUZFFJSO Updating Pijul with the latest changes in Libpijul
  • [28] MU5GSJAW Partial push and pull (WARNING: breaks the existing protocol)
  • [29] I24UEJQL Various post-fire fixes
  • [30] WIZFLH5S Allow reading changes from .pijul/changes with `pijul change`, even if they are not applied
  • [31] IVLLXQ5Z Improved push/pull reporting
  • [32] Y6EVFMTA Don't output files if they aren't in the current channel
  • [*] QL6K2ZM3 Tags

Change contents

  • edit in pijul/src/main.rs at line 14
    [6.84300][6.256:294]()
    const DEFAULT_CHANNEL: &str = "main";
  • replacement in pijul/src/identity/create.rs at line 320
    [4.3883][4.3883:3923]()
    crate::DEFAULT_CHANNEL,
    [4.3883]
    [4.3923]
    libpijul::DEFAULT_CHANNEL,
  • replacement in pijul/src/identity/create.rs at line 330
    [4.4154][4.4154:4194]()
    crate::DEFAULT_CHANNEL,
    [4.4154]
    [4.4194]
    libpijul::DEFAULT_CHANNEL,
  • replacement in pijul/src/commands/unrecord.rs at line 40
    [6.1649][6.1649:1696]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.1649]
    [6.1696]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/tag.rs at line 103
    [6.2561][6.176:235](),[6.176][6.176:235]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.2561]
    [6.235]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/tag.rs at line 218
    [2.1418][2.1418:1477]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [2.1418]
    [2.1477]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/tag.rs at line 241
    [6.26722][6.26722:26781]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.26722]
    [6.26781]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/reset.rs at line 52
    [6.3462][6.3462:3509]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.3462]
    [6.3509]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/reset.rs at line 100
    [6.1051][6.1051:1098]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.1051]
    [6.1098]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/record.rs at line 84
    [6.5231][6.5231:5278]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.5231]
    [6.5278]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/pushpull.rs at line 187
    [6.6754][6.6754:6801]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.6754]
    [6.6801]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/pushpull.rs at line 378
    [6.9143][6.9143:9190]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.9143]
    [6.9190]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/pushpull.rs at line 398
    [6.118237][6.118237:118272]()
    crate::DEFAULT_CHANNEL
    [6.118237]
    [6.118272]
    libpijul::DEFAULT_CHANNEL
  • replacement in pijul/src/commands/log.rs at line 62
    [6.493][6.493:561]()
    txn.current_channel().unwrap_or(crate::DEFAULT_CHANNEL)
    [6.493]
    [6.561]
    txn.current_channel().unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/log.rs at line 68
    [6.857][6.857:947]()
    && !(channel_name == txn.current_channel().unwrap_or(crate::DEFAULT_CHANNEL))
    [6.857]
    [6.947]
    && !(channel_name == txn.current_channel().unwrap_or(libpijul::DEFAULT_CHANNEL))
  • replacement in pijul/src/commands/init.rs at line 28
    [6.1700][6.1700:1768]()
    .unwrap_or_else(|| crate::DEFAULT_CHANNEL.to_string());
    [6.1700]
    [6.137015]
    .unwrap_or_else(|| libpijul::DEFAULT_CHANNEL.to_string());
  • replacement in pijul/src/commands/fork.rs at line 37
    [6.15753][6.15753:15804]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.15753]
    [6.15804]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/diff.rs at line 59
    [6.16123][6.16123:16170]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.16123]
    [6.16170]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/dependents.rs at line 22
    [6.872][5.17:101]()
    let channel_name = txn.current_channel().unwrap_or(crate::DEFAULT_CHANNEL);
    [6.872]
    [5.101]
    let channel_name = txn.current_channel().unwrap_or(libpijul::DEFAULT_CHANNEL);
  • replacement in pijul/src/commands/debug.rs at line 26
    [6.3406][6.3406:3474]()
    txn.current_channel().unwrap_or(crate::DEFAULT_CHANNEL)
    [6.3406]
    [6.3474]
    txn.current_channel().unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/credit.rs at line 35
    [6.3667][6.3667:3735]()
    txn.current_channel().unwrap_or(crate::DEFAULT_CHANNEL)
    [6.3667]
    [6.3735]
    txn.current_channel().unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/clone.rs at line 12
    [6.4661][6.4661:4731]()
    #[clap(long = "channel", default_value = crate::DEFAULT_CHANNEL)]
    [6.4661]
    [6.183267]
    #[clap(long = "channel", default_value = libpijul::DEFAULT_CHANNEL)]
  • replacement in pijul/src/commands/change.rs at line 32
    [6.190246][6.4219:4307]()
    let channel_name = txn.current_channel().unwrap_or(crate::DEFAULT_CHANNEL);
    [6.190246]
    [6.4307]
    let channel_name = txn.current_channel().unwrap_or(libpijul::DEFAULT_CHANNEL);
  • replacement in pijul/src/commands/archive.rs at line 84
    [6.192413][6.192413:192456]()
    crate::DEFAULT_CHANNEL
    [6.192413]
    [6.192456]
    libpijul::DEFAULT_CHANNEL
  • replacement in pijul/src/commands/archive.rs at line 121
    [3.2095][3.2095:2175]()
    txn.current_channel().unwrap_or(crate::DEFAULT_CHANNEL)
    [3.2095]
    [3.2175]
    txn.current_channel().unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/archive.rs at line 140
    [3.2554][3.2554:2634]()
    txn.current_channel().unwrap_or(crate::DEFAULT_CHANNEL)
    [3.2554]
    [3.2634]
    txn.current_channel().unwrap_or(libpijul::DEFAULT_CHANNEL)
  • replacement in pijul/src/commands/apply.rs at line 36
    [6.17627][6.17627:17674]()
    .unwrap_or(crate::DEFAULT_CHANNEL)
    [6.17627]
    [6.17674]
    .unwrap_or(libpijul::DEFAULT_CHANNEL)
  • edit in libpijul/src/lib.rs at line 46
    [6.2900]
    [6.717971]
    pub const DEFAULT_CHANNEL: &str = "main";