Upgrading the `git` subcommand to the latest Sanakirja and Libpijul
[?]
Jan 4, 2021, 9:38 PM
A3DMBJJAPLS6ASSZ7JVVVULRQNZCF2WKYTRUD7EY7PKVYABSATFACDependencies
- [2]
BJOZ25EUDeterministic Git import - [3]
TPEH2XNB1.0.0-alpha.28, with Tokio 1.0 - [4]
R3H7D42UDebugging `pijul git`: proper error reporting - [5]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [6]
ZHABNS3SCanonicalize all paths - [7]
SZWBLWZ4Reading ~/.ssh/config - [8]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [9]
GBLM3JLRFix options of git subcommand - [10]
2K7JLB4ZNo pager on Windows - [11]
UCQD3JDHFix build errors caused by sanakirja 0.14 - [12]
WIORLB47Version bump - [13]
MWKDNWZWVersion bump - [14]
I52XSRUHMassive cleanup, and simplification - [15]
UFCZKKLXUpgrading to the latest Sanakirja/Rand - [16]
PJ7T2VFLDo not hang on locked repositories - [17]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [18]
RR65HCKOThrussh versions - [19]
KWAMD2KRA few fixes in the documentation comments - [20]
VO5OQW4WRemoving anyhow in libpijul - [21]
6DOXSHWGCleanup, and version bump - [22]
BXD3IQYNFixing --features git - [23]
23LVKATNUse pager crate for log output - [24]
AXVPNZ2Ncommands/git: fix imports - [25]
CVAT6LN3Fixing git import, and adding more useful feedback (with `RUST_LOG="pijul=info"`)
Change contents
- edit in pijul/src/commands/git.rs at line 7
use anyhow::bail; - edit in pijul/src/commands/git.rs at line 13
use thiserror::Error; - edit in pijul/src/commands/git.rs at line 28[4.137623]→[4.137623:137833](∅→∅),[4.137833]→[4.3421:3454](∅→∅),[4.3454]→[4.137876:137886](∅→∅),[4.137876]→[4.137876:137886](∅→∅)
#[derive(Debug, Error)]pub enum Error {#[error("Pijul channel changed since last import. Please unrecord channel {} to state {}", channel, state.to_base32())]MerkleChanged {channel: String,state: libpijul::Merkle,},} - replacement in pijul/src/commands/git.rs at line 102
for (commit, merk) in txn_git.iter(&db, None) {for x in txn_git.iter(&db, None)? {let (commit, merk) = x?; - replacement in pijul/src/commands/git.rs at line 232
let channel = txn.load_channel(&oid_).unwrap();let channel = txn.load_channel(&oid_)?.unwrap(); - replacement in pijul/src/commands/git.rs at line 234
.changeid_reverse_log(&channel.borrow(), None).changeid_reverse_log(&channel.borrow(), None)? - replacement in pijul/src/commands/git.rs at line 236
.unwrap();.unwrap()?; - replacement in pijul/src/commands/git.rs at line 238
return Err((Error::MerkleChanged {channel: oid_,state: merkle,}).into());bail!("Pijul channel changed since last import. Please unrecord channel {} to state {}", oid_, merkle.to_base32()) - replacement in pijul/src/commands/git.rs at line 273
let parent_channel = txn.load_channel(&parent_name).unwrap();let parent_channel = txn.load_channel(&parent_name)?.unwrap(); - replacement in pijul/src/commands/git.rs at line 278
parent_channel.borrow().name(),MutTxn::name(&parent_channel.borrow()), - replacement in pijul/src/commands/git.rs at line 365
for (n, (h, _)) in txn.log(&p_channel.borrow(), 0) {if txn.has_change(&channel, h).is_none() {for x in txn.log(&p_channel.borrow(), 0)? {let (n, (h, _)) = x?;if txn.has_change(&channel, h)?.is_none() { - replacement in pijul/src/commands/git.rs at line 387
fn import_commit_parents<T: TxnTExt + MutTxnTExt>(fn import_commit_parents<T: TxnTExt + MutTxnTExt + GraphIter>( - replacement in pijul/src/commands/git.rs at line 403
info!("applying {:?} to {:?}", h, channel.borrow().name());info!("applying {:?} to {:?}",h,MutTxn::name(&parent_channel.borrow())); - replacement in pijul/src/commands/git.rs at line 681
) -> Result<(usize, Option<libpijul::Hash>, libpijul::Merkle), libpijul::LocalApplyError<T::Error>>{) -> Result<(usize, Option<libpijul::Hash>, libpijul::Merkle),libpijul::LocalApplyError<T::GraphError>,> { - replacement in pijul/Cargo.toml at line 64
sanakirja = "0.15.2"sanakirja = "0.15.4" - replacement in Cargo.lock at line 1760
version = "0.15.3"version = "0.15.4" - replacement in Cargo.lock at line 1762
checksum = "7826a692e79c80214f37fc838ae140a4f2148c4415a452ee5bf9f49c52e59765"checksum = "e2e2143f1c91f6acd12f5465ea1c040238afc18a7fc3a875ccd42c993d72d50c" - edit in Cargo.lock at line 1771
"thiserror",