Mercurial > hg
annotate tests/test-fileset-generated.t @ 30435:b86a448a2965
zstd: vendor python-zstandard 0.5.0
As the commit message for the previous changeset says, we wish
for zstd to be a 1st class citizen in Mercurial. To make that
happen, we need to enable Python to talk to the zstd C API. And
that requires bindings.
This commit vendors a copy of existing Python bindings. Why do we
need to vendor? As the commit message of the previous commit says,
relying on systems in the wild to have the bindings or zstd present
is a losing proposition. By distributing the zstd and bindings with
Mercurial, we significantly increase our chances that zstd will
work. Since zstd will deliver a better end-user experience by
achieving better performance, this benefits our users. Another
reason is that the Python bindings still aren't stable and the
API is somewhat fluid. While Mercurial could be coded to target
multiple versions of the Python bindings, it is safer to bundle
an explicit, known working version.
The added Python bindings are mostly a fully-featured interface
to the zstd C API. They allow one-shot operations, streaming,
reading and writing from objects implements the file object
protocol, dictionary compression, control over low-level compression
parameters, and more. The Python bindings work on Python 2.6,
2.7, and 3.3+ and have been tested on Linux and Windows. There are
CFFI bindings, but they are lacking compared to the C extension.
Upstream work will be needed before we can support zstd with PyPy.
But it will be possible.
The files added in this commit come from Git commit
e637c1b214d5f869cf8116c550dcae23ec13b677 from
https://github.com/indygreg/python-zstandard and are added without
modifications. Some files from the upstream repository have been
omitted, namely files related to continuous integration.
In the spirit of full disclosure, I'm the maintainer of the
"python-zstandard" project and have authored 100% of the code
added in this commit. Unfortunately, the Python bindings have
not been formally code reviewed by anyone. While I've tested
much of the code thoroughly (I even have tests that fuzz APIs),
there's a good chance there are bugs, memory leaks, not well
thought out APIs, etc. If someone wants to review the code and
send feedback to the GitHub project, it would be greatly
appreciated.
Despite my involvement with both projects, my opinions of code
style differ from Mercurial's. The code in this commit introduces
numerous code style violations in Mercurial's linters. So, the code
is excluded from most lints. However, some violations I agree with.
These have been added to the known violations ignore list for now.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 10 Nov 2016 22:15:58 -0800 |
parents | ceef5fb14872 |
children | 75be14993fda |
rev | line source |
---|---|
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
1 $ hg init |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
2 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
3 Set up history and working copy |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
4 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
5 $ python $TESTDIR/generate-working-copy-states.py state 2 1 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
6 $ hg addremove -q --similarity 0 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
7 $ hg commit -m first |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
8 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
9 $ python $TESTDIR/generate-working-copy-states.py state 2 2 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
10 $ hg addremove -q --similarity 0 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
11 $ hg commit -m second |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
12 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
13 $ python $TESTDIR/generate-working-copy-states.py state 2 wc |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
14 $ hg addremove -q --similarity 0 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
15 $ hg forget *_*_*-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
16 $ rm *_*_missing-* |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
17 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
18 Test status |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
19 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
20 $ hg st -A 'set:modified()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
21 M content1_content1_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
22 M content1_content2_content1-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
23 M content1_content2_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
24 M missing_content2_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
25 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
26 $ hg st -A 'set:added()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
27 A content1_missing_content1-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
28 A content1_missing_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
29 A missing_missing_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
30 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
31 $ hg st -A 'set:removed()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
32 R content1_content1_content1-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
33 R content1_content1_content3-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
34 R content1_content1_missing-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
35 R content1_content2_content1-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
36 R content1_content2_content2-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
37 R content1_content2_content3-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
38 R content1_content2_missing-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
39 R missing_content2_content2-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
40 R missing_content2_content3-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
41 R missing_content2_missing-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
42 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
43 $ hg st -A 'set:deleted()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
44 ! content1_content1_missing-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
45 ! content1_content2_missing-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
46 ! content1_missing_missing-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
47 ! missing_content2_missing-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
48 ! missing_missing_missing-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
49 |
27024
ceef5fb14872
fileset: add missing() predicate (issue4925)
liscju <piotr.listkiewicz@gmail.com>
parents:
24813
diff
changeset
|
50 $ hg st -A 'set:missing()' |
ceef5fb14872
fileset: add missing() predicate (issue4925)
liscju <piotr.listkiewicz@gmail.com>
parents:
24813
diff
changeset
|
51 ! content1_content1_missing-tracked |
ceef5fb14872
fileset: add missing() predicate (issue4925)
liscju <piotr.listkiewicz@gmail.com>
parents:
24813
diff
changeset
|
52 ! content1_content2_missing-tracked |
ceef5fb14872
fileset: add missing() predicate (issue4925)
liscju <piotr.listkiewicz@gmail.com>
parents:
24813
diff
changeset
|
53 ! content1_missing_missing-tracked |
ceef5fb14872
fileset: add missing() predicate (issue4925)
liscju <piotr.listkiewicz@gmail.com>
parents:
24813
diff
changeset
|
54 ! missing_content2_missing-tracked |
ceef5fb14872
fileset: add missing() predicate (issue4925)
liscju <piotr.listkiewicz@gmail.com>
parents:
24813
diff
changeset
|
55 ! missing_missing_missing-tracked |
ceef5fb14872
fileset: add missing() predicate (issue4925)
liscju <piotr.listkiewicz@gmail.com>
parents:
24813
diff
changeset
|
56 |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
57 $ hg st -A 'set:unknown()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
58 ? content1_missing_content1-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
59 ? content1_missing_content3-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
60 ? missing_missing_content3-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
61 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
62 $ hg st -A 'set:clean()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
63 C content1_content1_content1-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
64 C content1_content2_content2-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
65 C missing_content2_content2-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
66 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
67 Test log |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
68 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
69 $ hg log -T '{rev}\n' --stat 'set:modified()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
70 1 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
71 content1_content2_content1-tracked | 2 +- |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
72 content1_content2_content3-tracked | 2 +- |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
73 missing_content2_content3-tracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
74 3 files changed, 3 insertions(+), 2 deletions(-) |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
75 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
76 0 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
77 content1_content1_content3-tracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
78 content1_content2_content1-tracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
79 content1_content2_content3-tracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
80 3 files changed, 3 insertions(+), 0 deletions(-) |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
81 |
24813
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
82 Largefiles doesn't crash |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
83 $ hg log -T '{rev}\n' --stat 'set:modified()' --config extensions.largefiles= |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
84 1 |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
85 content1_content2_content1-tracked | 2 +- |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
86 content1_content2_content3-tracked | 2 +- |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
87 missing_content2_content3-tracked | 1 + |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
88 3 files changed, 3 insertions(+), 2 deletions(-) |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
89 |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
90 0 |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
91 content1_content1_content3-tracked | 1 + |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
92 content1_content2_content1-tracked | 1 + |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
93 content1_content2_content3-tracked | 1 + |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
94 3 files changed, 3 insertions(+), 0 deletions(-) |
2553ef7355ab
largefiles: don't mangle filesets when fixing up the log matcher
Matt Harbison <matt_harbison@yahoo.com>
parents:
24438
diff
changeset
|
95 |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
96 $ hg log -T '{rev}\n' --stat 'set:added()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
97 1 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
98 content1_missing_content1-tracked | 1 - |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
99 content1_missing_content3-tracked | 1 - |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
100 2 files changed, 0 insertions(+), 2 deletions(-) |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
101 |
23950
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
102 0 |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
103 content1_missing_content1-tracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
104 content1_missing_content3-tracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
105 2 files changed, 2 insertions(+), 0 deletions(-) |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
106 |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
107 $ hg log -T '{rev}\n' --stat 'set:removed()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
108 1 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
109 content1_content2_content1-untracked | 2 +- |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
110 content1_content2_content2-untracked | 2 +- |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
111 content1_content2_content3-untracked | 2 +- |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
112 content1_content2_missing-untracked | 2 +- |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
113 missing_content2_content2-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
114 missing_content2_content3-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
115 missing_content2_missing-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
116 7 files changed, 7 insertions(+), 4 deletions(-) |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
117 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
118 0 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
119 content1_content1_content1-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
120 content1_content1_content3-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
121 content1_content1_missing-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
122 content1_content2_content1-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
123 content1_content2_content2-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
124 content1_content2_content3-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
125 content1_content2_missing-untracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
126 7 files changed, 7 insertions(+), 0 deletions(-) |
23950
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
127 |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
128 $ hg log -T '{rev}\n' --stat 'set:deleted()' |
23950
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
129 1 |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
130 content1_content2_missing-tracked | 2 +- |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
131 content1_missing_missing-tracked | 1 - |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
132 missing_content2_missing-tracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
133 3 files changed, 2 insertions(+), 2 deletions(-) |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
134 |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
135 0 |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
136 content1_content1_missing-tracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
137 content1_content2_missing-tracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
138 content1_missing_missing-tracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
139 3 files changed, 3 insertions(+), 0 deletions(-) |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
140 |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
141 $ hg log -T '{rev}\n' --stat 'set:unknown()' |
23950
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
142 1 |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
143 content1_missing_content1-untracked | 1 - |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
144 content1_missing_content3-untracked | 1 - |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
145 2 files changed, 0 insertions(+), 2 deletions(-) |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
146 |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
147 0 |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
148 content1_missing_content1-untracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
149 content1_missing_content3-untracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
150 2 files changed, 2 insertions(+), 0 deletions(-) |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
151 |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
152 $ hg log -T '{rev}\n' --stat 'set:clean()' |
23950
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
153 1 |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
154 content1_content2_content2-tracked | 2 +- |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
155 missing_content2_content2-tracked | 1 + |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
156 2 files changed, 2 insertions(+), 1 deletions(-) |
caff3675cba5
log: evaluate filesets on working copy, not its parent
Martin von Zweigbergk <martinvonz@google.com>
parents:
23949
diff
changeset
|
157 |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
158 0 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
159 content1_content1_content1-tracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
160 content1_content2_content2-tracked | 1 + |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
161 2 files changed, 2 insertions(+), 0 deletions(-) |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
162 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
163 Test revert |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
164 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
165 $ hg revert 'set:modified()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
166 reverting content1_content1_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
167 reverting content1_content2_content1-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
168 reverting content1_content2_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
169 reverting missing_content2_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
170 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
171 $ hg revert 'set:added()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
172 forgetting content1_missing_content1-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
173 forgetting content1_missing_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
174 forgetting missing_missing_content3-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
175 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
176 $ hg revert 'set:removed()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
177 undeleting content1_content1_content1-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
178 undeleting content1_content1_content3-untracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
179 undeleting content1_content1_missing-untracked |
24438
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
180 undeleting content1_content2_content1-untracked |
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
181 undeleting content1_content2_content2-untracked |
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
182 undeleting content1_content2_content3-untracked |
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
183 undeleting content1_content2_missing-untracked |
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
184 undeleting missing_content2_content2-untracked |
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
185 undeleting missing_content2_content3-untracked |
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
186 undeleting missing_content2_missing-untracked |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
187 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
188 $ hg revert 'set:deleted()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
189 reverting content1_content1_missing-tracked |
24438
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
190 reverting content1_content2_missing-tracked |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
191 forgetting content1_missing_missing-tracked |
24438
5b85a5bc5bbb
revert: evaluate filesets against working directory (issue4497)
Martin von Zweigbergk <martinvonz@google.com>
parents:
23950
diff
changeset
|
192 reverting missing_content2_missing-tracked |
23949
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
193 forgetting missing_missing_missing-tracked |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
194 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
195 $ hg revert 'set:unknown()' |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
196 |
8efb7130a519
fileset: add tests of generated working copy states
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff
changeset
|
197 $ hg revert 'set:clean()' |