Skip to content

Commit df00bbd

Browse files
committed
print only the source files
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
1 parent f285731 commit df00bbd

2 files changed

Lines changed: 6 additions & 18 deletions

File tree

src/dune_engine/diff_promotion.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,6 @@ let display_files files_to_promote =
251251
file_opts
252252
|> List.filter_opt
253253
|> List.sort ~compare:(fun file file' -> File.compare file file')
254-
|> List.map ~f:File.to_dyn
255-
|> List.iter ~f:(fun file -> Console.print [ Dyn.pp file ])
254+
|> List.iter ~f:(fun (file : File.t) ->
255+
Console.printf "%s" (Path.Source.to_string file.dst))
256256
;;

test/blackbox-tests/test-cases/promote/promotion-list.t

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,12 @@
3333
[1]
3434

3535
$ dune promotion list --diff-command 'diff -u' 2>&1
36-
{ src = In_build_dir "default/a.actual"
37-
; staging = None
38-
; dst = In_source_tree "a.expected"
39-
}
40-
{ src = In_build_dir "default/b.actual"
41-
; staging = Some In_build_dir ".promotion-staging/b.expected"
42-
; dst = In_source_tree "b.expected"
43-
}
36+
a.expected
37+
b.expected
4438

4539
$ dune promotion list b.expected --diff-command 'diff -u' 2>&1
46-
{ src = In_build_dir "default/b.actual"
47-
; staging = Some In_build_dir ".promotion-staging/b.expected"
48-
; dst = In_source_tree "b.expected"
49-
}
40+
b.expected
5041

5142
$ dune promotion list a.expected nothing-to-promote.txt --diff-command 'diff -u' 2>&1
5243
Warning: Nothing to promote for nothing-to-promote.txt.
53-
{ src = In_build_dir "default/a.actual"
54-
; staging = None
55-
; dst = In_source_tree "a.expected"
56-
}
44+
a.expected

0 commit comments

Comments
 (0)