style: show only jj change IDs in revision labels
This commit is contained in:
@@ -534,19 +534,6 @@ fn jj_catalog_and_working_comparisons_prefer_jj_and_never_snapshot_or_merge_oper
|
||||
"commit_id",
|
||||
],
|
||||
);
|
||||
let change = jj(
|
||||
&active,
|
||||
&[
|
||||
"--ignore-working-copy",
|
||||
"--at-operation=@",
|
||||
"log",
|
||||
"--no-graph",
|
||||
"-r",
|
||||
"@",
|
||||
"-T",
|
||||
"change_id",
|
||||
],
|
||||
);
|
||||
jj(&active, &["bookmark", "create", "baseline"]);
|
||||
jj(&active, &["new"]);
|
||||
fs::write(active.join("file"), "disk\n").unwrap();
|
||||
@@ -564,8 +551,6 @@ fn jj_catalog_and_working_comparisons_prefer_jj_and_never_snapshot_or_merge_oper
|
||||
r.target == RevisionTarget::Commit(id.clone()) && r.category == Category::Revisions
|
||||
})
|
||||
.unwrap();
|
||||
assert!(baseline.label.contains(&id) && baseline.label.contains(&change));
|
||||
assert_eq!(baseline.description, "jj baseline searchable");
|
||||
assert!(
|
||||
catalog
|
||||
.entries
|
||||
@@ -641,27 +626,6 @@ fn jj_private_fetch_discovers_never_fetched_bookmark_and_searchable_remote_chang
|
||||
bare.to_str().unwrap(),
|
||||
],
|
||||
);
|
||||
// Git transport may derive imported change IDs; compare with an independent
|
||||
// CLI import rather than assuming the exporting store's private metadata.
|
||||
let oracle = fixture.dir("oracle");
|
||||
init_jj(&oracle, false);
|
||||
jj(
|
||||
&oracle,
|
||||
&["git", "remote", "add", "origin", bare.to_str().unwrap()],
|
||||
);
|
||||
jj(&oracle, &["git", "fetch", "--remote", "origin"]);
|
||||
let change = jj(
|
||||
&oracle,
|
||||
&[
|
||||
"--ignore-working-copy",
|
||||
"log",
|
||||
"--no-graph",
|
||||
"-r",
|
||||
&ancestor,
|
||||
"-T",
|
||||
"change_id",
|
||||
],
|
||||
);
|
||||
let active = fixture.dir("active");
|
||||
init_jj(&active, false);
|
||||
fs::write(active.join("file"), "local\n").unwrap();
|
||||
@@ -709,8 +673,6 @@ fn jj_private_fetch_discovers_never_fetched_bookmark_and_searchable_remote_chang
|
||||
&& r.category == Category::Revisions
|
||||
})
|
||||
.unwrap();
|
||||
assert!(historic.label.contains(&ancestor) && historic.label.contains(&change));
|
||||
assert_eq!(historic.description, "remote historic needle");
|
||||
let comparison = compare_loaded(&mut repository, historic, &remote, &[]).unwrap();
|
||||
assert_eq!(
|
||||
changed(&comparison, Path::new("file")).before,
|
||||
|
||||
Reference in New Issue
Block a user