Mercurial > hg
annotate tests/test-rhg.t @ 46564:313610be4147
copies-rust: rename TimeStampedPathCopies to InternalPathCopies
We are looking into moving away from TimeStampedPathCopy (that use is_ancestors
call to detect overwrite) in favor of an approach that does not requires
is_ancestors calls. Yet we will still need an internal representation that
differs from the returned result.
So we call it "InternalPathCopies" which is generic but clear.
Differential Revision: https://phab.mercurial-scm.org/D9641
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 15 Dec 2020 17:26:00 +0100 |
parents | a25033eb43b5 |
children | 21d3b40b4c0e |
rev | line source |
---|---|
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
1 #require rust |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
2 |
45437
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
3 Define an rhg function that will only run if rhg exists |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
4 $ rhg() { |
46228
e73b40c790ec
rhg: use a release-mode executable in tests
Simon Sapin <simon.sapin@octobus.net>
parents:
46090
diff
changeset
|
5 > if [ -f "$RUNTESTDIR/../rust/target/release/rhg" ]; then |
e73b40c790ec
rhg: use a release-mode executable in tests
Simon Sapin <simon.sapin@octobus.net>
parents:
46090
diff
changeset
|
6 > "$RUNTESTDIR/../rust/target/release/rhg" "$@" |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
7 > else |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
8 > echo "skipped: Cannot find rhg. Try to run cargo build in rust/rhg." |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
9 > exit 80 |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
10 > fi |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
11 > } |
45437
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
12 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
13 Unimplemented command |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
14 $ rhg unimplemented-command |
45440
a6a000ab135b
rhg: print error message when argument parsing fails
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45437
diff
changeset
|
15 error: Found argument 'unimplemented-command' which wasn't expected, or isn't valid in this context |
a6a000ab135b
rhg: print error message when argument parsing fails
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45437
diff
changeset
|
16 |
a6a000ab135b
rhg: print error message when argument parsing fails
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45437
diff
changeset
|
17 USAGE: |
46503
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
18 rhg [OPTIONS] <SUBCOMMAND> |
45440
a6a000ab135b
rhg: print error message when argument parsing fails
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45437
diff
changeset
|
19 |
a6a000ab135b
rhg: print error message when argument parsing fails
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45437
diff
changeset
|
20 For more information try --help |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
21 [252] |
45437
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
22 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
23 Finding root |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
24 $ rhg root |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
25 abort: no repository found in '$TESTTMP' (.hg not found)! |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
26 [255] |
45437
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
27 |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
28 $ hg init repository |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
29 $ cd repository |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
30 $ rhg root |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
31 $TESTTMP/repository |
45437
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
32 |
46505
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
33 Reading and setting configuration |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
34 $ echo "[ui]" >> $HGRCPATH |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
35 $ echo "username = user1" >> $HGRCPATH |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
36 $ rhg config ui.username |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
37 user1 |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
38 $ echo "[ui]" >> .hg/hgrc |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
39 $ echo "username = user2" >> .hg/hgrc |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
40 $ rhg config ui.username |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
41 user2 |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
42 $ rhg --config ui.username=user3 config ui.username |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
43 user3 |
a25033eb43b5
rhg: add limited support for the `config` sub-command
Simon Sapin <simon.sapin@octobus.net>
parents:
46503
diff
changeset
|
44 |
45437
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
45 Unwritable file descriptor |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
46 $ rhg root > /dev/full |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
47 abort: No space left on device (os error 28) |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
48 [255] |
45437
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
49 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
50 Deleted repository |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
51 $ rm -rf `pwd` |
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
52 $ rhg root |
46445
ca3f73cc3cf4
rhg: Simplify CommandError based on its use
Simon Sapin <simon.sapin@octobus.net>
parents:
46442
diff
changeset
|
53 abort: $ENOENT$: current directory |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
diff
changeset
|
54 [255] |
45437
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
55 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
56 Listing tracked files |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
57 $ cd $TESTTMP |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
58 $ hg init repository |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
59 $ cd repository |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
60 $ for i in 1 2 3; do |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
61 > echo $i >> file$i |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
62 > hg add file$i |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
63 > done |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
64 > hg commit -m "commit $i" -q |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
65 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
66 Listing tracked files from root |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
67 $ rhg files |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
68 file1 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
69 file2 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
70 file3 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
71 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
72 Listing tracked files from subdirectory |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
73 $ mkdir -p path/to/directory |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
74 $ cd path/to/directory |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
75 $ rhg files |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
76 ../../../file1 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
77 ../../../file2 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
78 ../../../file3 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
79 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
80 Listing tracked files through broken pipe |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
81 $ rhg files | head -n 1 |
e339693addc0
rhg: add harness tests for rhg files
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45050
diff
changeset
|
82 ../../../file1 |
45529
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
83 |
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
84 Debuging data in inline index |
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
85 $ cd $TESTTMP |
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
86 $ rm -rf repository |
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
87 $ hg init repository |
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
88 $ cd repository |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
89 $ for i in 1 2 3 4 5 6; do |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
90 > echo $i >> file-$i |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
91 > hg add file-$i |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
92 > hg commit -m "Commit $i" -q |
45529
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
93 > done |
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
94 $ rhg debugdata -c 2 |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
95 8d0267cb034247ebfa5ee58ce59e22e57a492297 |
45529
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
96 test |
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
97 0 0 |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
98 file-3 |
45529
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
99 |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
100 Commit 3 (no-eol) |
45529
f17caf8f3fef
rhg: add a limited `rhg debugdata` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45440
diff
changeset
|
101 $ rhg debugdata -m 2 |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
102 file-1\x00b8e02f6433738021a065f94175c7cd23db5f05be (esc) |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
103 file-2\x005d9299349fc01ddd25d0070d149b124d8f10411e (esc) |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
104 file-3\x002661d26c649684b482d10f91960cc3db683c38b4 (esc) |
45804
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
105 |
45813
57dc78861196
rhg: add full node id support for `debugdata` command
Antoine cezar<acezar@chwitlabs.fr>
parents:
45804
diff
changeset
|
106 Debuging with full node id |
57dc78861196
rhg: add full node id support for `debugdata` command
Antoine cezar<acezar@chwitlabs.fr>
parents:
45804
diff
changeset
|
107 $ rhg debugdata -c `hg log -r 0 -T '{node}'` |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
108 d1d1c679d3053e8926061b6f45ca52009f011e3f |
45813
57dc78861196
rhg: add full node id support for `debugdata` command
Antoine cezar<acezar@chwitlabs.fr>
parents:
45804
diff
changeset
|
109 test |
57dc78861196
rhg: add full node id support for `debugdata` command
Antoine cezar<acezar@chwitlabs.fr>
parents:
45804
diff
changeset
|
110 0 0 |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
111 file-1 |
45813
57dc78861196
rhg: add full node id support for `debugdata` command
Antoine cezar<acezar@chwitlabs.fr>
parents:
45804
diff
changeset
|
112 |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
113 Commit 1 (no-eol) |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
114 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
115 Specifying revisions by changeset ID |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
116 $ hg log -T '{node}\n' |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
117 c6ad58c44207b6ff8a4fbbca7045a5edaa7e908b |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
118 d654274993d0149eecc3cc03214f598320211900 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
119 f646af7e96481d3a5470b695cf30ad8e3ab6c575 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
120 cf8b83f14ead62b374b6e91a0e9303b85dfd9ed7 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
121 91c6f6e73e39318534dc415ea4e8a09c99cd74d6 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
122 6ae9681c6d30389694d8701faf24b583cf3ccafe |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
123 $ rhg files -r cf8b83 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
124 file-1 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
125 file-2 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
126 file-3 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
127 $ rhg cat -r cf8b83 file-2 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
128 2 |
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
129 $ rhg cat -r c file-2 |
46033
88e741bf2d93
rust: use NodePrefix::from_hex instead of hex::decode directly
Simon Sapin <simon-commits@exyr.org>
parents:
46032
diff
changeset
|
130 abort: ambiguous revision identifier c |
46032
8d6164098782
rhg: allow specifying a changeset ID prefix
Simon Sapin <simon-commits@exyr.org>
parents:
45996
diff
changeset
|
131 [255] |
46033
88e741bf2d93
rust: use NodePrefix::from_hex instead of hex::decode directly
Simon Sapin <simon-commits@exyr.org>
parents:
46032
diff
changeset
|
132 $ rhg cat -r d file-2 |
88e741bf2d93
rust: use NodePrefix::from_hex instead of hex::decode directly
Simon Sapin <simon-commits@exyr.org>
parents:
46032
diff
changeset
|
133 2 |
45813
57dc78861196
rhg: add full node id support for `debugdata` command
Antoine cezar<acezar@chwitlabs.fr>
parents:
45804
diff
changeset
|
134 |
45804
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
135 Cat files |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
136 $ cd $TESTTMP |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
137 $ rm -rf repository |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
138 $ hg init repository |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
139 $ cd repository |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
140 $ echo "original content" > original |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
141 $ hg add original |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
142 $ hg commit -m "add original" original |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
143 $ rhg cat -r 0 original |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
144 original content |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
145 Cat copied file should not display copy metadata |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
146 $ hg copy original copy_of_original |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
147 $ hg commit -m "add copy of original" |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
148 $ rhg cat -r 1 copy_of_original |
6991f3014311
rhg: strip copied files metadata from `cat` output
Antoine cezar<acezar@chwitlabs.fr>
parents:
45529
diff
changeset
|
149 original content |
45923
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
150 |
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
151 Requirements |
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
152 $ rhg debugrequirements |
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
153 dotencode |
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
154 fncache |
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
155 generaldelta |
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
156 revlogv1 |
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
157 sparserevlog |
ead435aa5294
rhg: add a `debugrequirements` subcommand
Simon Sapin <simon-commits@exyr.org>
parents:
45813
diff
changeset
|
158 store |
45937
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
159 |
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
160 $ echo indoor-pool >> .hg/requires |
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
161 $ rhg files |
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
162 [252] |
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
163 |
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
164 $ rhg cat -r 1 copy_of_original |
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
165 [252] |
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
166 |
2ad2745e0be9
rhg: exit with relevant code for unsupported requirements
Simon Sapin <simon-commits@exyr.org>
parents:
45923
diff
changeset
|
167 $ rhg debugrequirements |
46446
1dcd9c9975ed
rust: Fold find_root and check_requirements into Repo::find
Simon Sapin <simon.sapin@octobus.net>
parents:
46445
diff
changeset
|
168 [252] |
45938
f5d62f4d5327
rhg: check that .hg/requires is ASCII
Simon Sapin <simon-commits@exyr.org>
parents:
45937
diff
changeset
|
169 |
f5d62f4d5327
rhg: check that .hg/requires is ASCII
Simon Sapin <simon-commits@exyr.org>
parents:
45937
diff
changeset
|
170 $ echo -e '\xFF' >> .hg/requires |
f5d62f4d5327
rhg: check that .hg/requires is ASCII
Simon Sapin <simon-commits@exyr.org>
parents:
45937
diff
changeset
|
171 $ rhg debugrequirements |
46445
ca3f73cc3cf4
rhg: Simplify CommandError based on its use
Simon Sapin <simon.sapin@octobus.net>
parents:
46442
diff
changeset
|
172 abort: corrupted repository: parse error in 'requires' file |
45938
f5d62f4d5327
rhg: check that .hg/requires is ASCII
Simon Sapin <simon-commits@exyr.org>
parents:
45937
diff
changeset
|
173 [255] |
46034
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
174 |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
175 Persistent nodemap |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
176 $ cd $TESTTMP |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
177 $ rm -rf repository |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
178 $ hg init repository |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
179 $ cd repository |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
180 $ rhg debugrequirements | grep nodemap |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
181 [1] |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
182 $ hg debugbuilddag .+5000 --overwritten-file --config "storage.revlog.nodemap.mode=warn" |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
183 $ hg id -r tip |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
184 c3ae8dec9fad tip |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
185 $ ls .hg/store/00changelog* |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
186 .hg/store/00changelog.d |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
187 .hg/store/00changelog.i |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
188 $ rhg files -r c3ae8dec9fad |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
189 of |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
190 |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
191 $ cd $TESTTMP |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
192 $ rm -rf repository |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
193 $ hg --config format.use-persistent-nodemap=True init repository |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
194 $ cd repository |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
195 $ rhg debugrequirements | grep nodemap |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
196 persistent-nodemap |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
197 $ hg debugbuilddag .+5000 --overwritten-file --config "storage.revlog.nodemap.mode=warn" |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
198 $ hg id -r tip |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
199 c3ae8dec9fad tip |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
200 $ ls .hg/store/00changelog* |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
201 .hg/store/00changelog-*.nd (glob) |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
202 .hg/store/00changelog.d |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
203 .hg/store/00changelog.i |
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
204 .hg/store/00changelog.n |
46090
9eb07ab3f2d4
rhg: use persistent nodemap when available
Simon Sapin <simon-commits@exyr.org>
parents:
46034
diff
changeset
|
205 |
9eb07ab3f2d4
rhg: use persistent nodemap when available
Simon Sapin <simon-commits@exyr.org>
parents:
46034
diff
changeset
|
206 Specifying revisions by changeset ID |
46034
0c02c2a0badb
rhg: add a test with persistent-nodemap
Simon Sapin <simon-commits@exyr.org>
parents:
46033
diff
changeset
|
207 $ rhg files -r c3ae8dec9fad |
46090
9eb07ab3f2d4
rhg: use persistent nodemap when available
Simon Sapin <simon-commits@exyr.org>
parents:
46034
diff
changeset
|
208 of |
9eb07ab3f2d4
rhg: use persistent nodemap when available
Simon Sapin <simon-commits@exyr.org>
parents:
46034
diff
changeset
|
209 $ rhg cat -r c3ae8dec9fad of |
9eb07ab3f2d4
rhg: use persistent nodemap when available
Simon Sapin <simon-commits@exyr.org>
parents:
46034
diff
changeset
|
210 r5000 |
46461
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
211 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
212 Crate a shared repository |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
213 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
214 $ echo "[extensions]" >> $HGRCPATH |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
215 $ echo "share = " >> $HGRCPATH |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
216 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
217 $ cd $TESTTMP |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
218 $ hg init repo1 |
46503
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
219 $ echo a > repo1/a |
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
220 $ hg -R repo1 commit -A -m'init' |
46461
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
221 adding a |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
222 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
223 $ hg share repo1 repo2 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
224 updating working directory |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
225 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
226 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
227 And check that basic rhg commands work with sharing |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
228 |
46503
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
229 $ rhg files -R repo2 |
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
230 repo2/a |
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
231 $ rhg -R repo2 cat -r 0 repo2/a |
46462
d03b0601e0eb
rhg: initial support for shared repositories
Simon Sapin <simon.sapin@octobus.net>
parents:
46461
diff
changeset
|
232 a |
46461
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
233 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
234 Same with relative sharing |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
235 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
236 $ hg share repo2 repo3 --relative |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
237 updating working directory |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
238 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
239 |
46503
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
240 $ rhg files -R repo3 |
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
241 repo3/a |
d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Simon Sapin <simon.sapin@octobus.net>
parents:
46463
diff
changeset
|
242 $ rhg -R repo3 cat -r 0 repo3/a |
46462
d03b0601e0eb
rhg: initial support for shared repositories
Simon Sapin <simon.sapin@octobus.net>
parents:
46461
diff
changeset
|
243 a |
46461
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
244 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
245 Same with share-safe |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
246 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
247 $ echo "[format]" >> $HGRCPATH |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
248 $ echo "use-share-safe = True" >> $HGRCPATH |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
249 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
250 $ cd $TESTTMP |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
251 $ hg init repo4 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
252 $ cd repo4 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
253 $ echo a > a |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
254 $ hg commit -A -m'init' |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
255 adding a |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
256 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
257 $ cd .. |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
258 $ hg share repo4 repo5 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
259 updating working directory |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
260 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
261 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
262 And check that basic rhg commands work with sharing |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
263 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
264 $ cd repo5 |
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
265 $ rhg files |
46463
95b276283b67
rhg: add support for share-safe
Simon Sapin <simon.sapin@octobus.net>
parents:
46462
diff
changeset
|
266 a |
46461
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
267 $ rhg cat -r 0 a |
46463
95b276283b67
rhg: add support for share-safe
Simon Sapin <simon.sapin@octobus.net>
parents:
46462
diff
changeset
|
268 a |
46461
f3f4d1b7dc97
rhg: Add basic test with a shared repository
Simon Sapin <simon.sapin@octobus.net>
parents:
46446
diff
changeset
|
269 |