Minor change in the type of sanakirja::GraphTxnT::Graph (prepare for more general backends)
Dependencies
- [2]
IVLLXQ5ZImproved push/pull reporting - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [4]
MU5GSJAWPartial push and pull (WARNING: breaks the existing protocol) - [5]
2RXOCWUWMaking libpijul deterministic (and getting rid of `rand`) - [6]
GUL4M5FICleanup and formatting - [7]
5OGOE4VWStore the current channel in the pristine - [8]
DJYHARZ7Skipping old files when recording - [9]
I24UEJQLVarious post-fire fixes - [10]
TKEVOH7HFixing a bug when downloading changes, and making change download more efficient (more async) - [11]
3AMEP2Y5More convenient interface for channels - [12]
YN63NUZOSanakirja 1.0 - [13]
GHO6DWPIRefactoring iterators - [14]
DF23IIGWNew method to iterate on a graph: libpijul::pristine::GraphIter::iter_graph - [15]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [16]
YD7QFAD7Simplifying pijul::remote::PushDelta - [17]
A3RM526YIntegrating identity malleability - [18]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [19]
BZCGXVS7Fixing two bugs around conflicts on the last line, where invalid patches were produced (first bug) and applied (second bug)
Change contents
- replacement in pijul/src/remote/mod.rs at line 139
libpijul::fs::iter_graph_descendants(txn, &channel.read().graph, p)?.map(|x| x.unwrap()),libpijul::fs::iter_graph_descendants(txn, &channel.read(), p)?.map(|x| x.unwrap()), - replacement in pijul/src/remote/local.rs at line 87[3.10438]→[3.10438:10533](∅→∅),[3.10533]→[3.1058:1112](∅→∅),[3.965]→[3.10589:10681](∅→∅),[3.1112]→[3.10589:10681](∅→∅),[3.10589]→[3.10589:10681](∅→∅)
libpijul::fs::iter_graph_descendants(&remote_txn,&remote_channel.read().graph,p,)?.map(|x| x.unwrap()),libpijul::fs::iter_graph_descendants(&remote_txn, &remote_channel.read(), p)?.map(|x| x.unwrap()), - replacement in pijul/src/commands/protocol.rs at line 119
libpijul::fs::iter_graph_descendants(&*txn, &channel.read().graph, p)?libpijul::fs::iter_graph_descendants(&*txn, &channel.read(), p)? - replacement in pijul/src/commands/debug.rs at line 48
&channel.read().graph,&channel.read(), - replacement in pijul/src/commands/debug.rs at line 55
libpijul::pristine::debug(&txn, &channel.graph, std::io::stdout())?;libpijul::pristine::debug(&txn, &channel, std::io::stdout())?; - replacement in libpijul/src/pristine/sanakirja.rs at line 365
type Graph = Db<Vertex<ChangeId>, SerializedEdge>;type Graph = Channel; - replacement in libpijul/src/pristine/sanakirja.rs at line 368
sanakirja_get!(graph, Vertex<ChangeId>, SerializedEdge, GraphError);fn get_graph<'txn>(&'txn self,db: &Self::Graph,key: &Vertex<ChangeId>,value: Option<&SerializedEdge>,) -> Result<Option<&'txn SerializedEdge>, TxnErr<Self::GraphError>> {match ::sanakirja::btree::get(&self.txn, &db.graph, key, value) {Ok(Some((k, v))) if k == key => Ok(Some(v)),Ok(_) => Ok(None),Err(e) => {error!("{:?}", e);Err(TxnErr(SanakirjaError::PristineCorrupt))}}} - replacement in libpijul/src/pristine/sanakirja.rs at line 432
let mut cursor = btree::cursor::Cursor::new(&self.txn, g).map_err(TxnErr)?;let mut cursor = btree::cursor::Cursor::new(&self.txn, &g.graph).map_err(TxnErr)?; - replacement in libpijul/src/pristine/sanakirja.rs at line 455
find_block(&self.txn, graph, p)find_block(&self.txn, &graph.graph, p) - replacement in libpijul/src/pristine/sanakirja.rs at line 463
find_block_end(&self.txn, graph, p)find_block_end(&self.txn, &graph.graph, p) - replacement in libpijul/src/pristine/sanakirja.rs at line 651
let mut c = ::sanakirja::btree::cursor::Cursor::new(&self.txn, &g)?;let mut c = ::sanakirja::btree::cursor::Cursor::new(&self.txn, &g.graph)?; - replacement in libpijul/src/pristine/sanakirja.rs at line 708[3.40642]→[3.70593:70685](∅→∅),[3.2104]→[3.39313:39330](∅→∅),[3.70685]→[3.39313:39330](∅→∅),[3.39313]→[3.39313:39330](∅→∅)
fn graph<'a>(&self, c: &'a Self::Channel) -> &'a Db<Vertex<ChangeId>, SerializedEdge> {&c.graphfn graph<'a>(&self, c: &'a Self::Channel) -> &'a Channel {c - replacement in libpijul/src/pristine/sanakirja.rs at line 1496
Ok(btree::put(&mut self.txn, graph, k, e)?)Ok(btree::put(&mut self.txn, &mut graph.graph, k, e)?) - replacement in libpijul/src/pristine/sanakirja.rs at line 1505
Ok(btree::del(&mut self.txn, graph, k, e)?)Ok(btree::del(&mut self.txn, &mut graph.graph, k, e)?) - replacement in libpijul/src/pristine/sanakirja.rs at line 1511
&[graph],&[&graph.graph], - replacement in libpijul/src/pristine/sanakirja.rs at line 1529
let mut cursor = btree::cursor::Cursor::new(&self.txn, graph)?;let mut cursor = btree::cursor::Cursor::new(&self.txn, &graph.graph)?; - replacement in libpijul/src/pristine/sanakirja.rs at line 1596
&mut c.graphc