fix: serialize absent jj bookmark targets as null
This commit is contained in:
+1
-1
@@ -1685,7 +1685,7 @@ impl Repository {
|
||||
}
|
||||
// Resolve both endpoints from one operation, comparing raw names rather
|
||||
// than interpreting bookmark names as revsets or splitting on '@'.
|
||||
let template = r#""[" ++ json(name) ++ "," ++ json(remote) ++ "," ++ json(conflict) ++ "," ++ if(conflict, "null", json(normal_target.commit_id())) ++ "]\n""#;
|
||||
let template = r#""[" ++ json(name) ++ "," ++ json(remote) ++ "," ++ json(conflict) ++ "," ++ if(normal_target, json(normal_target.commit_id()), "null") ++ "]\n""#;
|
||||
let output = text(self.jj(
|
||||
&self.root,
|
||||
&["bookmark", "list", "--all-remotes", "-T", template],
|
||||
|
||||
Reference in New Issue
Block a user