Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
7398dc98
Commit
7398dc98
authored
5 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] force create session on script saving
parent
822b344a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/wp/ProofSession.ml
+6
-6
6 additions, 6 deletions
src/plugins/wp/ProofSession.ml
with
6 additions
and
6 deletions
src/plugins/wp/ProofSession.ml
+
6
−
6
View file @
7398dc98
...
@@ -29,8 +29,8 @@ type status =
...
@@ -29,8 +29,8 @@ type status =
let
files
:
(
string
,
status
)
Hashtbl
.
t
=
Hashtbl
.
create
32
let
files
:
(
string
,
status
)
Hashtbl
.
t
=
Hashtbl
.
create
32
let
filename
wpo
=
let
filename
~
force
wpo
=
let
d
=
Wp_parameters
.
get_session_dir
~
force
:
false
"script"
in
let
d
=
Wp_parameters
.
get_session_dir
~
force
"script"
in
Printf
.
sprintf
"%s/%s.json"
d
wpo
.
po_gid
Printf
.
sprintf
"%s/%s.json"
d
wpo
.
po_gid
let
legacies
wpo
=
let
legacies
wpo
=
...
@@ -42,7 +42,7 @@ let legacies wpo =
...
@@ -42,7 +42,7 @@ let legacies wpo =
]
]
let
status
wpo
=
let
status
wpo
=
let
f
=
filename
wpo
in
let
f
=
filename
~
force
:
false
wpo
in
try
Hashtbl
.
find
files
f
try
Hashtbl
.
find
files
f
with
Not_found
->
with
Not_found
->
let
status
=
let
status
=
...
@@ -86,7 +86,7 @@ let remove wpo =
...
@@ -86,7 +86,7 @@ let remove wpo =
Wp_parameters
.
feedback
Wp_parameters
.
feedback
"Removed deprecated script for '%s'"
wpo
.
po_sid
;
"Removed deprecated script for '%s'"
wpo
.
po_sid
;
Extlib
.
safe_remove
f0
;
Extlib
.
safe_remove
f0
;
Hashtbl
.
replace
files
(
filename
wpo
)
NoScript
;
Hashtbl
.
replace
files
(
filename
~
force
:
true
wpo
)
NoScript
;
end
end
let
save
wpo
js
=
let
save
wpo
js
=
...
@@ -99,7 +99,7 @@ let save wpo js =
...
@@ -99,7 +99,7 @@ let save wpo js =
|
Script
f
->
Json
.
save_file
f
js
|
Script
f
->
Json
.
save_file
f
js
|
NoScript
->
|
NoScript
->
begin
begin
let
f
=
filename
wpo
in
let
f
=
filename
~
force
:
true
wpo
in
Json
.
save_file
f
js
;
Json
.
save_file
f
js
;
Hashtbl
.
replace
files
f
(
Script
f
)
;
Hashtbl
.
replace
files
f
(
Script
f
)
;
end
end
...
@@ -108,7 +108,7 @@ let save wpo js =
...
@@ -108,7 +108,7 @@ let save wpo js =
Wp_parameters
.
feedback
Wp_parameters
.
feedback
"Upgraded script for '%s'"
wpo
.
po_sid
;
"Upgraded script for '%s'"
wpo
.
po_sid
;
Extlib
.
safe_remove
f0
;
Extlib
.
safe_remove
f0
;
let
f
=
filename
wpo
in
let
f
=
filename
~
force
:
true
wpo
in
Json
.
save_file
f
js
;
Json
.
save_file
f
js
;
Hashtbl
.
replace
files
f
(
Script
f
)
;
Hashtbl
.
replace
files
f
(
Script
f
)
;
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment