Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freeze: convert to 1.0 #1488

Merged
merged 3 commits into from
Jun 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 20 additions & 26 deletions content/docs/command-reference/freeze.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,51 +44,45 @@ First, let's create a simple DVC-file:
```dvc
$ echo foo > foo
$ dvc add foo
Saving information ...

$ dvc run -d foo -o bar cp foo bar
Running command:
cp foo bar
...
$ dvc run -d foo -o bar -n make_copy cp foo bar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put -n first?

Suggested change
$ dvc run -d foo -o bar -n make_copy cp foo bar
$ dvc run -n make_copy -d foo -o bar cp foo bar

```

Then, let's change the file `foo` that the stage described in `bar.dvc` depends
on:
Then, let's change the file `foo` that the stage `make_copy` depends on:

```dvc
$ rm foo
$ echo foo1 > foo
$ dvc status

bar.dvc
deps
changed: foo
foo.dvc
outs
changed: foo
make_copy:
changed deps:
modified: foo
foo.dvc:
changed outs:
modified: foo
```

Now, let's freeze the `bar` stage:
Now, let's freeze the `make_copy` stage:

```dvc
$ dvc freeze bar.dvc
$ dvc freeze make_copy
$ dvc status

foo.dvc
outs
changed: foo
foo.dvc:
changed outs:
modified: foo
```

Run `dvc unfreeze` to unfreeze it back:

```dvc
$ dvc unfreeze bar.dvc
$ dvc unfreeze make_copy
$ dvc status

bar.dvc
deps
changed: foo
foo.dvc
outs
changed: foo
make_copy:
changed deps:
modified: foo
foo.dvc:
changed outs:
modified: foo
jorgeorpinel marked this conversation as resolved.
Show resolved Hide resolved
```