Skip to content

Commit a66eddc

Browse files
committed
!fixup final syntax
1 parent c08c73c commit a66eddc

File tree

4 files changed

+91
-91
lines changed

4 files changed

+91
-91
lines changed

src/client/opamPinCommand.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ let list st ~short =
775775
| None -> (`red, "error while fetching current revision")
776776
| Some ver -> (`magenta, OpamPackage.Version.to_string ver)
777777
in
778-
Some (OpamConsole.colorise color ("("^rev^")"))
778+
Some (Printf.sprintf "(at %s)" (OpamConsole.colorise color (rev)))
779779
| _ -> None
780780
in
781781
[ OpamPackage.to_string nv;

tests/reftests/pin.test

+13-13
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ The following actions will be performed:
182182
-> installed no-url.ved
183183
Done.
184184
### : list
185-
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
186-
nip-git.ved git git+file://${BASEDIR}/nip-git#master (HASH)
187-
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (HASH)
185+
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
186+
nip-git.ved git git+file://${BASEDIR}/nip-git#master (at HASH)
187+
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (at HASH)
188188
nip-path.ved rsync file://${BASEDIR}/nip-path
189189
nip-path2.ved rsync file://${BASEDIR}/nip-path2
190190
nip-path3.ved rsync file://${BASEDIR}/nip-path3
@@ -332,11 +332,11 @@ The following actions will be performed:
332332
[NOTE] Pinning command successful, but your installed packages may be out of sync.
333333
# Return code 31 #
334334
### : list
335-
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
335+
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
336336
nip.1 version 1
337337
nip-git.ved rsync file://${BASEDIR}/nip-git
338-
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (HASH)
339-
nip-git3.ved git git+file://${BASEDIR}/nip-git3#master (HASH)
338+
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (at HASH)
339+
nip-git3.ved git git+file://${BASEDIR}/nip-git3#master (at HASH)
340340
nip-path.ved rsync file://${BASEDIR}/nip-path
341341
nip-path3.ved rsync file://${BASEDIR}/nip-path3
342342
no-url.1 (uninstalled) local definition
@@ -407,8 +407,8 @@ The following actions will be performed:
407407
-> installed nip-path2.ved
408408
Done.
409409
### : list
410-
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
411-
nip-git.ved git git+file://${BASEDIR}/nip-git#master (HASH)
410+
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
411+
nip-git.ved git git+file://${BASEDIR}/nip-git#master (at HASH)
412412
nip-git2.ved rsync file://${BASEDIR}/nip-git2
413413
nip-path.ved rsync file://${BASEDIR}/nip-path
414414
nip-path2.ved rsync file://${BASEDIR}/nip-path2
@@ -452,8 +452,8 @@ Done.
452452
# Name # Installed # Synopsis
453453
nip-path ved pinned to version ved at file://${BASEDIR}/nip-path
454454
nip-path2 ved pinned to version ved at file://${BASEDIR}/nip-path2
455-
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
456-
nip-git4.ved (uninstalled) git git+file://${BASEDIR}/nip-git4#master (HASH)
455+
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
456+
nip-git4.ved (uninstalled) git git+file://${BASEDIR}/nip-git4#master (at HASH)
457457
nip-path.ved rsync file://${BASEDIR}/nip-path
458458
nip-path2.ved rsync file://${BASEDIR}/nip-path2
459459
### find OPAM/actions/lib -name '*.t' | sort
@@ -570,11 +570,11 @@ The following actions will be performed:
570570
### :::::::::::::::::::::::
571571
### opam switch kinds
572572
### : pin list
573-
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
573+
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
574574
nip.1 version 1
575575
nip-git.ved rsync file://${BASEDIR}/nip-git
576-
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (HASH)
577-
nip-git3.ved git git+file://${BASEDIR}/nip-git3#master (HASH)
576+
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (at HASH)
577+
nip-git3.ved git git+file://${BASEDIR}/nip-git3#master (at HASH)
578578
nip-path.ved rsync file://${BASEDIR}/nip-path
579579
nip-path3.ved rsync file://${BASEDIR}/nip-path3
580580
no-url.1 (uninstalled) local definition

0 commit comments

Comments
 (0)