Skip to content
Permalink
Browse files

Make graph traces stable. (#6909)

Fixes #6787
  • Loading branch information...
jsirois committed Dec 12, 2018
1 parent e9a516e commit 907810ace1d231eeb63aeddf8de3f3a69d0d0ced

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -17,7 +17,7 @@ glob = "0.2.11"
grpcio = { git = "https://github.com/pantsbuild/grpc-rs.git", rev = "4dfafe9355dc996d7d0702e7386a6fedcd9734c0", default_features = false, features = ["protobuf-codec"] }
hashing = { path = "../hashing" }
ignore = "0.4.4"
indexmap = "1"
indexmap = "1.0.2"
itertools = "0.7.2"
lazy_static = "1"
lmdb = { git = "https://github.com/pantsbuild/lmdb-rs.git", rev = "06bdfbfc6348f6804127176e561843f214fc17f8" }
@@ -9,6 +9,7 @@ boxfuture = { path = "../boxfuture" }
fnv = "1.0.5"
futures = "^0.1.16"
hashing = { path = "../hashing" }
indexmap = "1.0.2"
parking_lot = "0.6"
petgraph = "0.4.5"

@@ -34,6 +34,7 @@ extern crate boxfuture;
extern crate fnv;
extern crate futures;
extern crate hashing;
extern crate indexmap;
extern crate parking_lot;
extern crate petgraph;

@@ -54,6 +55,7 @@ use std::time::{Duration, Instant};
use fnv::FnvHasher;

use futures::future::{self, Future};
use indexmap::IndexSet;
use parking_lot::Mutex;
use petgraph::graph::DiGraph;
use petgraph::visit::EdgeRef;
@@ -270,7 +272,7 @@ impl<N: Node> InnerGraph<N> {
}

fn trace<T: NodeTracer<N>>(&self, roots: &[N], file_path: &Path) -> Result<(), String> {
let root_ids: HashSet<EntryId, FNV> = roots
let root_ids: IndexSet<EntryId, FNV> = roots
.into_iter()
.filter_map(|nk| self.entry_id(&EntryKey::Valid(nk.clone())))
.cloned()

0 comments on commit 907810a

Please sign in to comment.
You can’t perform that action at this time.