| 1 |
Let commit recurse into subrepos by default to match pre-2.0 behavior: |
| 2 |
|
| 3 |
$ echo "[ui]" >> $HGRCPATH |
| 4 |
$ echo "commitsubrepos = Yes" >> $HGRCPATH |
| 5 |
|
| 6 |
$ hg init t |
| 7 |
$ cd t |
| 8 |
|
| 9 |
first revision, no sub |
| 10 |
|
| 11 |
$ echo a > a |
| 12 |
$ hg ci -Am0 |
| 13 |
adding a |
| 14 |
|
| 15 |
add first sub |
| 16 |
|
| 17 |
$ echo s = s > .hgsub |
| 18 |
$ hg add .hgsub |
| 19 |
$ hg init s |
| 20 |
$ echo a > s/a |
| 21 |
|
| 22 |
Issue2232: committing a subrepo without .hgsub |
| 23 |
|
| 24 |
$ hg ci -mbad s |
| 25 |
abort: can't commit subrepos without .hgsub |
| 26 |
[255] |
| 27 |
|
| 28 |
$ hg -R s add s/a |
| 29 |
$ hg files -S |
| 30 |
.hgsub |
| 31 |
a |
| 32 |
s/a |
| 33 |
|
| 34 |
`hg files` respects ui.relative-paths |
| 35 |
BROKEN: shows subrepo paths relative to the subrepo |
| 36 |
$ hg files -S --config ui.relative-paths=no |
| 37 |
.hgsub |
| 38 |
a |
| 39 |
s/a |
| 40 |
|
| 41 |
$ hg -R s ci -Ams0 |
| 42 |
$ hg sum |
| 43 |
parent: 0:f7b1eb17ad24 tip |
| 44 |
0 |
| 45 |
branch: default |
| 46 |
commit: 1 added, 1 subrepos |
| 47 |
update: (current) |
| 48 |
phases: 1 draft |
| 49 |
$ hg ci -m1 |
| 50 |
|
| 51 |
test handling .hgsubstate "added" explicitly. |
| 52 |
|
| 53 |
$ hg parents --template '{node}\n{files}\n' |
| 54 |
7cf8cfea66e410e8e3336508dfeec07b3192de51 |
| 55 |
.hgsub .hgsubstate |
| 56 |
$ hg rollback -q |
| 57 |
$ hg add .hgsubstate |
| 58 |
$ hg ci -m1 |
| 59 |
$ hg parents --template '{node}\n{files}\n' |
| 60 |
7cf8cfea66e410e8e3336508dfeec07b3192de51 |
| 61 |
.hgsub .hgsubstate |
| 62 |
|
| 63 |
Subrepopath which overlaps with filepath, does not change warnings in remove() |
| 64 |
|
| 65 |
$ mkdir snot |
| 66 |
$ touch snot/file |
| 67 |
$ hg remove -S snot/file |
| 68 |
not removing snot/file: file is untracked |
| 69 |
[1] |
| 70 |
$ hg cat snot/filenot |
| 71 |
snot/filenot: no such file in rev 7cf8cfea66e4 |
| 72 |
[1] |
| 73 |
$ rm -r snot |
| 74 |
|
| 75 |
Revert subrepo and test subrepo fileset keyword: |
| 76 |
|
| 77 |
$ echo b > s/a |
| 78 |
$ hg revert --dry-run "set:subrepo('glob:s*')" |
| 79 |
reverting subrepo s |
| 80 |
reverting s/a |
| 81 |
$ cat s/a |
| 82 |
b |
| 83 |
$ hg revert "set:subrepo('glob:s*')" |
| 84 |
reverting subrepo s |
| 85 |
reverting s/a |
| 86 |
$ cat s/a |
| 87 |
a |
| 88 |
$ rm s/a.orig |
| 89 |
|
| 90 |
Revert subrepo with no backup. The "reverting s/a" line is gone since |
| 91 |
we're really running 'hg update' in the subrepo: |
| 92 |
|
| 93 |
$ echo b > s/a |
| 94 |
$ hg revert --no-backup s |
| 95 |
reverting subrepo s |
| 96 |
|
| 97 |
Issue2022: update -C |
| 98 |
|
| 99 |
$ echo b > s/a |
| 100 |
$ hg sum |
| 101 |
parent: 1:7cf8cfea66e4 tip |
| 102 |
1 |
| 103 |
branch: default |
| 104 |
commit: 1 subrepos |
| 105 |
update: (current) |
| 106 |
phases: 2 draft |
| 107 |
$ hg co -C 1 |
| 108 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 109 |
$ hg sum |
| 110 |
parent: 1:7cf8cfea66e4 tip |
| 111 |
1 |
| 112 |
branch: default |
| 113 |
commit: (clean) |
| 114 |
update: (current) |
| 115 |
phases: 2 draft |
| 116 |
|
| 117 |
commands that require a clean repo should respect subrepos |
| 118 |
|
| 119 |
$ echo b >> s/a |
| 120 |
$ hg backout tip |
| 121 |
abort: uncommitted changes in subrepository "s" |
| 122 |
[255] |
| 123 |
$ hg revert -C -R s s/a |
| 124 |
|
| 125 |
add sub sub |
| 126 |
|
| 127 |
$ echo ss = ss > s/.hgsub |
| 128 |
$ hg init s/ss |
| 129 |
$ echo a > s/ss/a |
| 130 |
$ hg -R s add s/.hgsub |
| 131 |
$ hg -R s/ss add s/ss/a |
| 132 |
$ hg sum |
| 133 |
parent: 1:7cf8cfea66e4 tip |
| 134 |
1 |
| 135 |
branch: default |
| 136 |
commit: 1 subrepos |
| 137 |
update: (current) |
| 138 |
phases: 2 draft |
| 139 |
$ hg ci -m2 |
| 140 |
committing subrepository s |
| 141 |
committing subrepository s/ss |
| 142 |
$ hg sum |
| 143 |
parent: 2:df30734270ae tip |
| 144 |
2 |
| 145 |
branch: default |
| 146 |
commit: (clean) |
| 147 |
update: (current) |
| 148 |
phases: 3 draft |
| 149 |
|
| 150 |
test handling .hgsubstate "modified" explicitly. |
| 151 |
|
| 152 |
$ hg parents --template '{node}\n{files}\n' |
| 153 |
df30734270ae757feb35e643b7018e818e78a9aa |
| 154 |
.hgsubstate |
| 155 |
$ hg rollback -q |
| 156 |
$ hg status -A .hgsubstate |
| 157 |
M .hgsubstate |
| 158 |
$ hg ci -m2 |
| 159 |
$ hg parents --template '{node}\n{files}\n' |
| 160 |
df30734270ae757feb35e643b7018e818e78a9aa |
| 161 |
.hgsubstate |
| 162 |
|
| 163 |
bump sub rev (and check it is ignored by ui.commitsubrepos) |
| 164 |
|
| 165 |
$ echo b > s/a |
| 166 |
$ hg -R s ci -ms1 |
| 167 |
$ hg --config ui.commitsubrepos=no ci -m3 |
| 168 |
|
| 169 |
leave sub dirty (and check ui.commitsubrepos=no aborts the commit) |
| 170 |
|
| 171 |
$ echo c > s/a |
| 172 |
$ hg --config ui.commitsubrepos=no ci -m4 |
| 173 |
abort: uncommitted changes in subrepository "s" |
| 174 |
(use --subrepos for recursive commit) |
| 175 |
[255] |
| 176 |
$ hg id |
| 177 |
f6affe3fbfaa+ tip |
| 178 |
$ hg -R s ci -mc |
| 179 |
$ hg id |
| 180 |
f6affe3fbfaa+ tip |
| 181 |
$ echo d > s/a |
| 182 |
$ hg ci -m4 |
| 183 |
committing subrepository s |
| 184 |
$ hg tip -R s |
| 185 |
changeset: 4:02dcf1d70411 |
| 186 |
tag: tip |
| 187 |
user: test |
| 188 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 189 |
summary: 4 |
| 190 |
|
| 191 |
|
| 192 |
check caching |
| 193 |
|
| 194 |
$ hg co 0 |
| 195 |
0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
| 196 |
$ hg debugsub |
| 197 |
|
| 198 |
restore |
| 199 |
|
| 200 |
$ hg co |
| 201 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 202 |
$ hg debugsub |
| 203 |
path s |
| 204 |
source s |
| 205 |
revision 02dcf1d704118aee3ee306ccfa1910850d5b05ef |
| 206 |
|
| 207 |
new branch for merge tests |
| 208 |
|
| 209 |
$ hg co 1 |
| 210 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 211 |
$ echo t = t >> .hgsub |
| 212 |
$ hg init t |
| 213 |
$ echo t > t/t |
| 214 |
$ hg -R t add t |
| 215 |
adding t/t |
| 216 |
|
| 217 |
5 |
| 218 |
|
| 219 |
$ hg ci -m5 # add sub |
| 220 |
committing subrepository t |
| 221 |
created new head |
| 222 |
$ echo t2 > t/t |
| 223 |
|
| 224 |
6 |
| 225 |
|
| 226 |
$ hg st -R s |
| 227 |
$ hg ci -m6 # change sub |
| 228 |
committing subrepository t |
| 229 |
$ hg debugsub |
| 230 |
path s |
| 231 |
source s |
| 232 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 233 |
path t |
| 234 |
source t |
| 235 |
revision 6747d179aa9a688023c4b0cad32e4c92bb7f34ad |
| 236 |
$ echo t3 > t/t |
| 237 |
|
| 238 |
7 |
| 239 |
|
| 240 |
$ hg ci -m7 # change sub again for conflict test |
| 241 |
committing subrepository t |
| 242 |
$ hg rm .hgsub |
| 243 |
|
| 244 |
8 |
| 245 |
|
| 246 |
$ hg ci -m8 # remove sub |
| 247 |
|
| 248 |
test handling .hgsubstate "removed" explicitly. |
| 249 |
|
| 250 |
$ hg parents --template '{node}\n{files}\n' |
| 251 |
96615c1dad2dc8e3796d7332c77ce69156f7b78e |
| 252 |
.hgsub .hgsubstate |
| 253 |
$ hg rollback -q |
| 254 |
$ hg remove .hgsubstate |
| 255 |
$ hg ci -m8 |
| 256 |
$ hg parents --template '{node}\n{files}\n' |
| 257 |
96615c1dad2dc8e3796d7332c77ce69156f7b78e |
| 258 |
.hgsub .hgsubstate |
| 259 |
|
| 260 |
merge tests |
| 261 |
|
| 262 |
$ hg co -C 3 |
| 263 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 264 |
$ hg merge 5 # test adding |
| 265 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 266 |
(branch merge, don't forget to commit) |
| 267 |
$ hg debugsub |
| 268 |
path s |
| 269 |
source s |
| 270 |
revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 |
| 271 |
path t |
| 272 |
source t |
| 273 |
revision 60ca1237c19474e7a3978b0dc1ca4e6f36d51382 |
| 274 |
$ hg ci -m9 |
| 275 |
created new head |
| 276 |
$ hg merge 6 --debug # test change |
| 277 |
resolving manifests |
| 278 |
branchmerge: True, force: False, partial: False |
| 279 |
ancestor: 1f14a2e2d3ec, local: f0d2028bf86d+, remote: 1831e14459c4 |
| 280 |
starting 4 threads for background file closing (?) |
| 281 |
.hgsubstate: versions differ -> m |
| 282 |
subrepo merge f0d2028bf86d+ 1831e14459c4 1f14a2e2d3ec |
| 283 |
subrepo t: other changed, get t:6747d179aa9a688023c4b0cad32e4c92bb7f34ad:hg |
| 284 |
getting subrepo t |
| 285 |
resolving manifests (no-rust !) |
| 286 |
branchmerge: False, force: False, partial: False (no-rust !) |
| 287 |
ancestor: 60ca1237c194, local: 60ca1237c194+, remote: 6747d179aa9a (no-rust !) |
| 288 |
t: remote is newer -> g (no-rust !) |
| 289 |
getting t (no-rust !) |
| 290 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 291 |
(branch merge, don't forget to commit) |
| 292 |
$ hg debugsub |
| 293 |
path s |
| 294 |
source s |
| 295 |
revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 |
| 296 |
path t |
| 297 |
source t |
| 298 |
revision 6747d179aa9a688023c4b0cad32e4c92bb7f34ad |
| 299 |
$ echo conflict > t/t |
| 300 |
$ hg ci -m10 |
| 301 |
committing subrepository t |
| 302 |
$ HGMERGE=internal:merge hg merge --debug 7 # test conflict |
| 303 |
resolving manifests |
| 304 |
branchmerge: True, force: False, partial: False |
| 305 |
ancestor: 1831e14459c4, local: e45c8b14af55+, remote: f94576341bcf |
| 306 |
starting 4 threads for background file closing (?) |
| 307 |
.hgsubstate: versions differ -> m |
| 308 |
subrepo merge e45c8b14af55+ f94576341bcf 1831e14459c4 |
| 309 |
subrepo t: both sides changed |
| 310 |
subrepository t diverged (local revision: 20a0db6fbf6c, remote revision: 7af322bc1198) |
| 311 |
starting 4 threads for background file closing (?) |
| 312 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [merge rev]. |
| 313 |
what do you want to do? m |
| 314 |
merging subrepository "t" |
| 315 |
resolving manifests |
| 316 |
branchmerge: True, force: False, partial: False |
| 317 |
ancestor: 6747d179aa9a, local: 20a0db6fbf6c+, remote: 7af322bc1198 |
| 318 |
starting 4 threads for background file closing (?) |
| 319 |
preserving t for resolve of t |
| 320 |
t: versions differ -> m |
| 321 |
picked tool ':merge' for t (binary False symlink False changedelete False) |
| 322 |
merging t |
| 323 |
my t@20a0db6fbf6c+ other t@7af322bc1198 ancestor t@6747d179aa9a |
| 324 |
warning: conflicts while merging t! (edit, then use 'hg resolve --mark') |
| 325 |
0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
| 326 |
use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
| 327 |
subrepo t: merge with t:7af322bc1198a32402fe903e0b7ebcfc5c9bf8f4:hg |
| 328 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 329 |
(branch merge, don't forget to commit) |
| 330 |
|
| 331 |
should conflict |
| 332 |
|
| 333 |
$ cat t/t |
| 334 |
<<<<<<< local: 20a0db6fbf6c - test: 10 |
| 335 |
conflict |
| 336 |
======= |
| 337 |
t3 |
| 338 |
>>>>>>> other: 7af322bc1198 - test: 7 |
| 339 |
|
| 340 |
11: remove subrepo t |
| 341 |
|
| 342 |
$ hg co -C 5 |
| 343 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 344 |
$ hg revert -r 4 .hgsub # remove t |
| 345 |
$ hg ci -m11 |
| 346 |
created new head |
| 347 |
$ hg debugsub |
| 348 |
path s |
| 349 |
source s |
| 350 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 351 |
|
| 352 |
local removed, remote changed, keep changed |
| 353 |
|
| 354 |
$ hg merge 6 |
| 355 |
remote [merge rev] changed subrepository t which local [working copy] removed |
| 356 |
use (c)hanged version or (d)elete? c |
| 357 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 358 |
(branch merge, don't forget to commit) |
| 359 |
BROKEN: should include subrepo t |
| 360 |
$ hg debugsub |
| 361 |
path s |
| 362 |
source s |
| 363 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 364 |
$ cat .hgsubstate |
| 365 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 366 |
6747d179aa9a688023c4b0cad32e4c92bb7f34ad t |
| 367 |
$ hg ci -m 'local removed, remote changed, keep changed' |
| 368 |
BROKEN: should include subrepo t |
| 369 |
$ hg debugsub |
| 370 |
path s |
| 371 |
source s |
| 372 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 373 |
BROKEN: should include subrepo t |
| 374 |
$ cat .hgsubstate |
| 375 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 376 |
$ cat t/t |
| 377 |
t2 |
| 378 |
|
| 379 |
local removed, remote changed, keep removed |
| 380 |
|
| 381 |
$ hg co -C 11 |
| 382 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 383 |
$ hg merge --config ui.interactive=true 6 <<EOF |
| 384 |
> d |
| 385 |
> EOF |
| 386 |
remote [merge rev] changed subrepository t which local [working copy] removed |
| 387 |
use (c)hanged version or (d)elete? d |
| 388 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 389 |
(branch merge, don't forget to commit) |
| 390 |
$ hg debugsub |
| 391 |
path s |
| 392 |
source s |
| 393 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 394 |
$ cat .hgsubstate |
| 395 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 396 |
$ hg ci -m 'local removed, remote changed, keep removed' |
| 397 |
created new head |
| 398 |
$ hg debugsub |
| 399 |
path s |
| 400 |
source s |
| 401 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 402 |
$ cat .hgsubstate |
| 403 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 404 |
|
| 405 |
local changed, remote removed, keep changed |
| 406 |
|
| 407 |
$ hg co -C 6 |
| 408 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 409 |
$ hg merge 11 |
| 410 |
local [working copy] changed subrepository t which remote [merge rev] removed |
| 411 |
use (c)hanged version or (d)elete? c |
| 412 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 413 |
(branch merge, don't forget to commit) |
| 414 |
BROKEN: should include subrepo t |
| 415 |
$ hg debugsub |
| 416 |
path s |
| 417 |
source s |
| 418 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 419 |
BROKEN: should include subrepo t |
| 420 |
$ cat .hgsubstate |
| 421 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 422 |
$ hg ci -m 'local changed, remote removed, keep changed' |
| 423 |
created new head |
| 424 |
BROKEN: should include subrepo t |
| 425 |
$ hg debugsub |
| 426 |
path s |
| 427 |
source s |
| 428 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 429 |
BROKEN: should include subrepo t |
| 430 |
$ cat .hgsubstate |
| 431 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 432 |
$ cat t/t |
| 433 |
t2 |
| 434 |
|
| 435 |
local changed, remote removed, keep removed |
| 436 |
|
| 437 |
$ hg co -C 6 |
| 438 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 439 |
$ hg merge --config ui.interactive=true 11 <<EOF |
| 440 |
> d |
| 441 |
> EOF |
| 442 |
local [working copy] changed subrepository t which remote [merge rev] removed |
| 443 |
use (c)hanged version or (d)elete? d |
| 444 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 445 |
(branch merge, don't forget to commit) |
| 446 |
$ hg debugsub |
| 447 |
path s |
| 448 |
source s |
| 449 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 450 |
$ cat .hgsubstate |
| 451 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 452 |
$ hg ci -m 'local changed, remote removed, keep removed' |
| 453 |
created new head |
| 454 |
$ hg debugsub |
| 455 |
path s |
| 456 |
source s |
| 457 |
revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
| 458 |
$ cat .hgsubstate |
| 459 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 460 |
|
| 461 |
clean up to avoid having to fix up the tests below |
| 462 |
|
| 463 |
$ hg co -C 10 |
| 464 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 465 |
$ cat >> $HGRCPATH <<EOF |
| 466 |
> [extensions] |
| 467 |
> strip= |
| 468 |
> EOF |
| 469 |
$ hg strip -r 11:15 |
| 470 |
saved backup bundle to $TESTTMP/t/.hg/strip-backup/*-backup.hg (glob) |
| 471 |
|
| 472 |
clone |
| 473 |
|
| 474 |
$ cd .. |
| 475 |
$ hg clone t tc |
| 476 |
updating to branch default |
| 477 |
cloning subrepo s from $TESTTMP/t/s |
| 478 |
cloning subrepo s/ss from $TESTTMP/t/s/ss |
| 479 |
cloning subrepo t from $TESTTMP/t/t |
| 480 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 481 |
$ cd tc |
| 482 |
$ hg debugsub |
| 483 |
path s |
| 484 |
source s |
| 485 |
revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 |
| 486 |
path t |
| 487 |
source t |
| 488 |
revision 20a0db6fbf6c3d2836e6519a642ae929bfc67c0e |
| 489 |
$ cd .. |
| 490 |
|
| 491 |
clone with subrepo disabled (update should fail) |
| 492 |
|
| 493 |
$ hg clone t -U tc2 --config subrepos.allowed=false |
| 494 |
$ hg update -R tc2 --config subrepos.allowed=false |
| 495 |
abort: subrepos not enabled |
| 496 |
(see 'hg help config.subrepos' for details) |
| 497 |
[255] |
| 498 |
$ ls -A tc2 |
| 499 |
.hg |
| 500 |
.hgsub |
| 501 |
.hgsubstate |
| 502 |
a |
| 503 |
|
| 504 |
$ hg clone t tc3 --config subrepos.allowed=false |
| 505 |
updating to branch default |
| 506 |
abort: subrepos not enabled |
| 507 |
(see 'hg help config.subrepos' for details) |
| 508 |
[255] |
| 509 |
$ ls -A tc3 |
| 510 |
.hg |
| 511 |
.hgsub |
| 512 |
.hgsubstate |
| 513 |
a |
| 514 |
|
| 515 |
And again with just the hg type disabled |
| 516 |
|
| 517 |
$ hg clone t -U tc4 --config subrepos.hg:allowed=false |
| 518 |
$ hg update -R tc4 --config subrepos.hg:allowed=false |
| 519 |
abort: hg subrepos not allowed |
| 520 |
(see 'hg help config.subrepos' for details) |
| 521 |
[255] |
| 522 |
$ ls -A tc4 |
| 523 |
.hg |
| 524 |
.hgsub |
| 525 |
.hgsubstate |
| 526 |
a |
| 527 |
|
| 528 |
$ hg clone t tc5 --config subrepos.hg:allowed=false |
| 529 |
updating to branch default |
| 530 |
abort: hg subrepos not allowed |
| 531 |
(see 'hg help config.subrepos' for details) |
| 532 |
[255] |
| 533 |
$ ls -A tc5 |
| 534 |
.hg |
| 535 |
.hgsub |
| 536 |
.hgsubstate |
| 537 |
a |
| 538 |
|
| 539 |
push |
| 540 |
|
| 541 |
$ cd tc |
| 542 |
$ echo bah > t/t |
| 543 |
$ hg ci -m11 |
| 544 |
committing subrepository t |
| 545 |
$ hg push |
| 546 |
pushing to $TESTTMP/t |
| 547 |
no changes made to subrepo s/ss since last push to $TESTTMP/t/s/ss |
| 548 |
no changes made to subrepo s since last push to $TESTTMP/t/s |
| 549 |
pushing subrepo t to $TESTTMP/t/t |
| 550 |
searching for changes |
| 551 |
adding changesets |
| 552 |
adding manifests |
| 553 |
adding file changes |
| 554 |
added 1 changesets with 1 changes to 1 files |
| 555 |
searching for changes |
| 556 |
adding changesets |
| 557 |
adding manifests |
| 558 |
adding file changes |
| 559 |
added 1 changesets with 1 changes to 1 files |
| 560 |
|
| 561 |
push -f |
| 562 |
|
| 563 |
$ echo bah > s/a |
| 564 |
$ hg ci -m12 |
| 565 |
committing subrepository s |
| 566 |
$ hg push |
| 567 |
pushing to $TESTTMP/t |
| 568 |
no changes made to subrepo s/ss since last push to $TESTTMP/t/s/ss |
| 569 |
pushing subrepo s to $TESTTMP/t/s |
| 570 |
searching for changes |
| 571 |
abort: push creates new remote head 12a213df6fa9 (in subrepository "s") |
| 572 |
(merge or see 'hg help push' for details about pushing new heads) |
| 573 |
[255] |
| 574 |
$ hg push -f |
| 575 |
pushing to $TESTTMP/t |
| 576 |
pushing subrepo s/ss to $TESTTMP/t/s/ss |
| 577 |
searching for changes |
| 578 |
no changes found |
| 579 |
pushing subrepo s to $TESTTMP/t/s |
| 580 |
searching for changes |
| 581 |
adding changesets |
| 582 |
adding manifests |
| 583 |
adding file changes |
| 584 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 585 |
pushing subrepo t to $TESTTMP/t/t |
| 586 |
searching for changes |
| 587 |
no changes found |
| 588 |
searching for changes |
| 589 |
adding changesets |
| 590 |
adding manifests |
| 591 |
adding file changes |
| 592 |
added 1 changesets with 1 changes to 1 files |
| 593 |
|
| 594 |
check that unmodified subrepos are not pushed |
| 595 |
|
| 596 |
$ hg clone . ../tcc |
| 597 |
updating to branch default |
| 598 |
cloning subrepo s from $TESTTMP/tc/s |
| 599 |
cloning subrepo s/ss from $TESTTMP/tc/s/ss |
| 600 |
cloning subrepo t from $TESTTMP/tc/t |
| 601 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 602 |
|
| 603 |
the subrepos on the new clone have nothing to push to its source |
| 604 |
|
| 605 |
$ hg push -R ../tcc . |
| 606 |
pushing to . |
| 607 |
no changes made to subrepo s/ss since last push to s/ss |
| 608 |
no changes made to subrepo s since last push to s |
| 609 |
no changes made to subrepo t since last push to t |
| 610 |
searching for changes |
| 611 |
no changes found |
| 612 |
[1] |
| 613 |
|
| 614 |
the subrepos on the source do not have a clean store versus the clone target |
| 615 |
because they were never explicitly pushed to the source |
| 616 |
|
| 617 |
$ hg push ../tcc |
| 618 |
pushing to ../tcc |
| 619 |
pushing subrepo s/ss to ../tcc/s/ss |
| 620 |
searching for changes |
| 621 |
no changes found |
| 622 |
pushing subrepo s to ../tcc/s |
| 623 |
searching for changes |
| 624 |
no changes found |
| 625 |
pushing subrepo t to ../tcc/t |
| 626 |
searching for changes |
| 627 |
no changes found |
| 628 |
searching for changes |
| 629 |
no changes found |
| 630 |
[1] |
| 631 |
|
| 632 |
after push their stores become clean |
| 633 |
|
| 634 |
$ hg push ../tcc |
| 635 |
pushing to ../tcc |
| 636 |
no changes made to subrepo s/ss since last push to ../tcc/s/ss |
| 637 |
no changes made to subrepo s since last push to ../tcc/s |
| 638 |
no changes made to subrepo t since last push to ../tcc/t |
| 639 |
searching for changes |
| 640 |
no changes found |
| 641 |
[1] |
| 642 |
|
| 643 |
updating a subrepo to a different revision or changing |
| 644 |
its working directory does not make its store dirty |
| 645 |
|
| 646 |
$ hg -R s update '.^' |
| 647 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 648 |
$ hg push |
| 649 |
pushing to $TESTTMP/t |
| 650 |
no changes made to subrepo s/ss since last push to $TESTTMP/t/s/ss |
| 651 |
no changes made to subrepo s since last push to $TESTTMP/t/s |
| 652 |
no changes made to subrepo t since last push to $TESTTMP/t/t |
| 653 |
searching for changes |
| 654 |
no changes found |
| 655 |
[1] |
| 656 |
$ echo foo >> s/a |
| 657 |
$ hg push |
| 658 |
pushing to $TESTTMP/t |
| 659 |
no changes made to subrepo s/ss since last push to $TESTTMP/t/s/ss |
| 660 |
no changes made to subrepo s since last push to $TESTTMP/t/s |
| 661 |
no changes made to subrepo t since last push to $TESTTMP/t/t |
| 662 |
searching for changes |
| 663 |
no changes found |
| 664 |
[1] |
| 665 |
$ hg -R s update -C tip |
| 666 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 667 |
|
| 668 |
committing into a subrepo makes its store (but not its parent's store) dirty |
| 669 |
|
| 670 |
$ echo foo >> s/ss/a |
| 671 |
$ hg -R s/ss commit -m 'test dirty store detection' |
| 672 |
|
| 673 |
$ hg out -S -r `hg log -r tip -T "{node|short}"` |
| 674 |
comparing with $TESTTMP/t |
| 675 |
searching for changes |
| 676 |
no changes found |
| 677 |
comparing with $TESTTMP/t/s |
| 678 |
searching for changes |
| 679 |
no changes found |
| 680 |
comparing with $TESTTMP/t/s/ss |
| 681 |
searching for changes |
| 682 |
changeset: 1:79ea5566a333 |
| 683 |
tag: tip |
| 684 |
user: test |
| 685 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 686 |
summary: test dirty store detection |
| 687 |
|
| 688 |
comparing with $TESTTMP/t/t |
| 689 |
searching for changes |
| 690 |
no changes found |
| 691 |
|
| 692 |
$ hg push |
| 693 |
pushing to $TESTTMP/t |
| 694 |
pushing subrepo s/ss to $TESTTMP/t/s/ss |
| 695 |
searching for changes |
| 696 |
adding changesets |
| 697 |
adding manifests |
| 698 |
adding file changes |
| 699 |
added 1 changesets with 1 changes to 1 files |
| 700 |
no changes made to subrepo s since last push to $TESTTMP/t/s |
| 701 |
no changes made to subrepo t since last push to $TESTTMP/t/t |
| 702 |
searching for changes |
| 703 |
no changes found |
| 704 |
[1] |
| 705 |
|
| 706 |
a subrepo store may be clean versus one repo but not versus another |
| 707 |
|
| 708 |
$ hg push |
| 709 |
pushing to $TESTTMP/t |
| 710 |
no changes made to subrepo s/ss since last push to $TESTTMP/t/s/ss |
| 711 |
no changes made to subrepo s since last push to $TESTTMP/t/s |
| 712 |
no changes made to subrepo t since last push to $TESTTMP/t/t |
| 713 |
searching for changes |
| 714 |
no changes found |
| 715 |
[1] |
| 716 |
$ hg push ../tcc |
| 717 |
pushing to ../tcc |
| 718 |
pushing subrepo s/ss to ../tcc/s/ss |
| 719 |
searching for changes |
| 720 |
adding changesets |
| 721 |
adding manifests |
| 722 |
adding file changes |
| 723 |
added 1 changesets with 1 changes to 1 files |
| 724 |
no changes made to subrepo s since last push to ../tcc/s |
| 725 |
no changes made to subrepo t since last push to ../tcc/t |
| 726 |
searching for changes |
| 727 |
no changes found |
| 728 |
[1] |
| 729 |
|
| 730 |
update |
| 731 |
|
| 732 |
$ cd ../t |
| 733 |
$ hg up -C # discard our earlier merge |
| 734 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 735 |
updated to "c373c8102e68: 12" |
| 736 |
2 other heads for branch "default" |
| 737 |
$ echo blah > t/t |
| 738 |
$ hg ci -m13 |
| 739 |
committing subrepository t |
| 740 |
|
| 741 |
backout calls revert internally with minimal opts, which should not raise |
| 742 |
KeyError |
| 743 |
|
| 744 |
$ hg backout ".^" --no-commit |
| 745 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 746 |
changeset c373c8102e68 backed out, don't forget to commit. |
| 747 |
|
| 748 |
$ hg up -C # discard changes |
| 749 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 750 |
updated to "925c17564ef8: 13" |
| 751 |
2 other heads for branch "default" |
| 752 |
|
| 753 |
pull |
| 754 |
|
| 755 |
$ cd ../tc |
| 756 |
$ hg pull |
| 757 |
pulling from $TESTTMP/t |
| 758 |
searching for changes |
| 759 |
adding changesets |
| 760 |
adding manifests |
| 761 |
adding file changes |
| 762 |
added 1 changesets with 1 changes to 1 files |
| 763 |
new changesets 925c17564ef8 |
| 764 |
(run 'hg update' to get a working copy) |
| 765 |
|
| 766 |
should pull t |
| 767 |
|
| 768 |
$ hg incoming -S -r `hg log -r tip -T "{node|short}"` |
| 769 |
comparing with $TESTTMP/t |
| 770 |
no changes found |
| 771 |
comparing with $TESTTMP/t/s |
| 772 |
searching for changes |
| 773 |
no changes found |
| 774 |
comparing with $TESTTMP/t/s/ss |
| 775 |
searching for changes |
| 776 |
no changes found |
| 777 |
comparing with $TESTTMP/t/t |
| 778 |
searching for changes |
| 779 |
changeset: 5:52c0adc0515a |
| 780 |
tag: tip |
| 781 |
user: test |
| 782 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 783 |
summary: 13 |
| 784 |
|
| 785 |
|
| 786 |
$ hg up |
| 787 |
pulling subrepo t from $TESTTMP/t/t |
| 788 |
searching for changes |
| 789 |
adding changesets |
| 790 |
adding manifests |
| 791 |
adding file changes |
| 792 |
added 1 changesets with 1 changes to 1 files |
| 793 |
new changesets 52c0adc0515a |
| 794 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 795 |
updated to "925c17564ef8: 13" |
| 796 |
2 other heads for branch "default" |
| 797 |
$ cat t/t |
| 798 |
blah |
| 799 |
|
| 800 |
bogus subrepo path aborts |
| 801 |
|
| 802 |
$ echo 'bogus=[boguspath' >> .hgsub |
| 803 |
$ hg ci -m 'bogus subrepo path' |
| 804 |
abort: missing ] in subrepository source |
| 805 |
[255] |
| 806 |
|
| 807 |
Issue1986: merge aborts when trying to merge a subrepo that |
| 808 |
shouldn't need merging |
| 809 |
|
| 810 |
# subrepo layout |
| 811 |
# |
| 812 |
# o 5 br |
| 813 |
# /| |
| 814 |
# o | 4 default |
| 815 |
# | | |
| 816 |
# | o 3 br |
| 817 |
# |/| |
| 818 |
# o | 2 default |
| 819 |
# | | |
| 820 |
# | o 1 br |
| 821 |
# |/ |
| 822 |
# o 0 default |
| 823 |
|
| 824 |
$ cd .. |
| 825 |
$ rm -rf sub |
| 826 |
$ hg init main |
| 827 |
$ cd main |
| 828 |
$ hg init s |
| 829 |
$ cd s |
| 830 |
$ echo a > a |
| 831 |
$ hg ci -Am1 |
| 832 |
adding a |
| 833 |
$ hg branch br |
| 834 |
marked working directory as branch br |
| 835 |
(branches are permanent and global, did you want a bookmark?) |
| 836 |
$ echo a >> a |
| 837 |
$ hg ci -m1 |
| 838 |
$ hg up default |
| 839 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 840 |
$ echo b > b |
| 841 |
$ hg ci -Am1 |
| 842 |
adding b |
| 843 |
$ hg up br |
| 844 |
1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 845 |
$ hg merge tip |
| 846 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 847 |
(branch merge, don't forget to commit) |
| 848 |
$ hg ci -m1 |
| 849 |
$ hg up 2 |
| 850 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 851 |
$ echo c > c |
| 852 |
$ hg ci -Am1 |
| 853 |
adding c |
| 854 |
$ hg up 3 |
| 855 |
1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 856 |
$ hg merge 4 |
| 857 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 858 |
(branch merge, don't forget to commit) |
| 859 |
$ hg ci -m1 |
| 860 |
|
| 861 |
# main repo layout: |
| 862 |
# |
| 863 |
# * <-- try to merge default into br again |
| 864 |
# .`| |
| 865 |
# . o 5 br --> substate = 5 |
| 866 |
# . | |
| 867 |
# o | 4 default --> substate = 4 |
| 868 |
# | | |
| 869 |
# | o 3 br --> substate = 2 |
| 870 |
# |/| |
| 871 |
# o | 2 default --> substate = 2 |
| 872 |
# | | |
| 873 |
# | o 1 br --> substate = 3 |
| 874 |
# |/ |
| 875 |
# o 0 default --> substate = 2 |
| 876 |
|
| 877 |
$ cd .. |
| 878 |
$ echo 's = s' > .hgsub |
| 879 |
$ hg -R s up 2 |
| 880 |
1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 881 |
$ hg ci -Am1 |
| 882 |
adding .hgsub |
| 883 |
$ hg branch br |
| 884 |
marked working directory as branch br |
| 885 |
(branches are permanent and global, did you want a bookmark?) |
| 886 |
$ echo b > b |
| 887 |
$ hg -R s up 3 |
| 888 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 889 |
$ hg ci -Am1 |
| 890 |
adding b |
| 891 |
$ hg up default |
| 892 |
1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 893 |
$ echo c > c |
| 894 |
$ hg ci -Am1 |
| 895 |
adding c |
| 896 |
$ hg up 1 |
| 897 |
2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 898 |
$ hg merge 2 |
| 899 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 900 |
(branch merge, don't forget to commit) |
| 901 |
$ hg ci -m1 |
| 902 |
$ hg up 2 |
| 903 |
1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 904 |
$ hg -R s up 4 |
| 905 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 906 |
$ echo d > d |
| 907 |
$ hg ci -Am1 |
| 908 |
adding d |
| 909 |
$ hg up 3 |
| 910 |
2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 911 |
$ hg -R s up 5 |
| 912 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 913 |
$ echo e > e |
| 914 |
$ hg ci -Am1 |
| 915 |
adding e |
| 916 |
|
| 917 |
$ hg up 5 |
| 918 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 919 |
$ hg merge 4 # try to merge default into br again |
| 920 |
subrepository s diverged (local revision: f8f13b33206e, remote revision: a3f9062a4f88) |
| 921 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [merge rev]. |
| 922 |
what do you want to do? m |
| 923 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 924 |
(branch merge, don't forget to commit) |
| 925 |
$ cd .. |
| 926 |
|
| 927 |
test subrepo delete from .hgsubstate |
| 928 |
|
| 929 |
$ hg init testdelete |
| 930 |
$ mkdir testdelete/nested testdelete/nested2 |
| 931 |
$ hg init testdelete/nested |
| 932 |
$ hg init testdelete/nested2 |
| 933 |
$ echo test > testdelete/nested/foo |
| 934 |
$ echo test > testdelete/nested2/foo |
| 935 |
$ hg -R testdelete/nested add |
| 936 |
adding testdelete/nested/foo |
| 937 |
$ hg -R testdelete/nested2 add |
| 938 |
adding testdelete/nested2/foo |
| 939 |
$ hg -R testdelete/nested ci -m test |
| 940 |
$ hg -R testdelete/nested2 ci -m test |
| 941 |
$ echo nested = nested > testdelete/.hgsub |
| 942 |
$ echo nested2 = nested2 >> testdelete/.hgsub |
| 943 |
$ hg -R testdelete add |
| 944 |
adding testdelete/.hgsub |
| 945 |
$ hg -R testdelete ci -m "nested 1 & 2 added" |
| 946 |
$ echo nested = nested > testdelete/.hgsub |
| 947 |
$ hg -R testdelete ci -m "nested 2 deleted" |
| 948 |
$ cat testdelete/.hgsubstate |
| 949 |
bdf5c9a3103743d900b12ae0db3ffdcfd7b0d878 nested |
| 950 |
$ hg -R testdelete remove testdelete/.hgsub |
| 951 |
$ hg -R testdelete ci -m ".hgsub deleted" |
| 952 |
$ cat testdelete/.hgsubstate |
| 953 |
bdf5c9a3103743d900b12ae0db3ffdcfd7b0d878 nested |
| 954 |
|
| 955 |
test repository cloning |
| 956 |
|
| 957 |
$ mkdir mercurial mercurial2 |
| 958 |
$ hg init nested_absolute |
| 959 |
$ echo test > nested_absolute/foo |
| 960 |
$ hg -R nested_absolute add |
| 961 |
adding nested_absolute/foo |
| 962 |
$ hg -R nested_absolute ci -mtest |
| 963 |
$ cd mercurial |
| 964 |
$ hg init nested_relative |
| 965 |
$ echo test2 > nested_relative/foo2 |
| 966 |
$ hg -R nested_relative add |
| 967 |
adding nested_relative/foo2 |
| 968 |
$ hg -R nested_relative ci -mtest2 |
| 969 |
$ hg init main |
| 970 |
$ echo "nested_relative = ../nested_relative" > main/.hgsub |
| 971 |
$ echo "nested_absolute = `pwd`/nested_absolute" >> main/.hgsub |
| 972 |
$ hg -R main add |
| 973 |
adding main/.hgsub |
| 974 |
$ hg -R main ci -m "add subrepos" |
| 975 |
$ cd .. |
| 976 |
$ hg clone mercurial/main mercurial2/main |
| 977 |
updating to branch default |
| 978 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 979 |
$ cat mercurial2/main/nested_absolute/.hg/hgrc \ |
| 980 |
> mercurial2/main/nested_relative/.hg/hgrc |
| 981 |
[paths] |
| 982 |
default = $TESTTMP/mercurial/nested_absolute |
| 983 |
[paths] |
| 984 |
default = $TESTTMP/mercurial/nested_relative |
| 985 |
$ rm -rf mercurial mercurial2 |
| 986 |
|
| 987 |
Issue1977: multirepo push should fail if subrepo push fails |
| 988 |
|
| 989 |
$ hg init repo |
| 990 |
$ hg init repo/s |
| 991 |
$ echo a > repo/s/a |
| 992 |
$ hg -R repo/s ci -Am0 |
| 993 |
adding a |
| 994 |
$ echo s = s > repo/.hgsub |
| 995 |
$ hg -R repo ci -Am1 |
| 996 |
adding .hgsub |
| 997 |
$ hg clone repo repo2 |
| 998 |
updating to branch default |
| 999 |
cloning subrepo s from $TESTTMP/repo/s |
| 1000 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1001 |
$ hg -q -R repo2 pull -u |
| 1002 |
$ echo 1 > repo2/s/a |
| 1003 |
$ hg -R repo2/s ci -m2 |
| 1004 |
$ hg -q -R repo2/s push |
| 1005 |
$ hg -R repo2/s up -C 0 |
| 1006 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1007 |
$ echo 2 > repo2/s/b |
| 1008 |
$ hg -R repo2/s ci -m3 -A |
| 1009 |
adding b |
| 1010 |
created new head |
| 1011 |
$ hg -R repo2 ci -m3 |
| 1012 |
$ hg -q -R repo2 push |
| 1013 |
abort: push creates new remote head cc505f09a8b2 (in subrepository "s") |
| 1014 |
(merge or see 'hg help push' for details about pushing new heads) |
| 1015 |
[255] |
| 1016 |
$ hg -R repo update |
| 1017 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1018 |
|
| 1019 |
test if untracked file is not overwritten |
| 1020 |
|
| 1021 |
(this tests also has a change to update .hgsubstate and merge it within the |
| 1022 |
same second. It should mark is are modified , even if none of mode, size and |
| 1023 |
timestamp of it isn't changed on the filesystem (see also issue4583)) |
| 1024 |
|
| 1025 |
$ echo issue3276_ok > repo/s/b |
| 1026 |
$ hg -R repo2 push -f -q |
| 1027 |
|
| 1028 |
$ hg -R repo update |
| 1029 |
b: untracked file differs |
| 1030 |
abort: untracked files in working directory differ from files in requested revision (in subrepository "s") |
| 1031 |
[255] |
| 1032 |
|
| 1033 |
$ cat repo/s/b |
| 1034 |
issue3276_ok |
| 1035 |
$ rm repo/s/b |
| 1036 |
$ hg -R repo revert --all |
| 1037 |
reverting repo/.hgsubstate |
| 1038 |
reverting subrepo s |
| 1039 |
$ hg -R repo update |
| 1040 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1041 |
$ cat repo/s/b |
| 1042 |
2 |
| 1043 |
$ rm -rf repo2 repo |
| 1044 |
|
| 1045 |
|
| 1046 |
Issue1852 subrepos with relative paths always push/pull relative to default |
| 1047 |
|
| 1048 |
Prepare a repo with subrepo |
| 1049 |
|
| 1050 |
$ hg init issue1852a |
| 1051 |
$ cd issue1852a |
| 1052 |
$ hg init sub/repo |
| 1053 |
$ echo test > sub/repo/foo |
| 1054 |
$ hg -R sub/repo add sub/repo/foo |
| 1055 |
$ echo sub/repo = sub/repo > .hgsub |
| 1056 |
$ hg add .hgsub |
| 1057 |
$ hg ci -mtest |
| 1058 |
committing subrepository sub/repo |
| 1059 |
$ echo test >> sub/repo/foo |
| 1060 |
$ hg ci -mtest |
| 1061 |
committing subrepository sub/repo |
| 1062 |
$ hg cat sub/repo/foo |
| 1063 |
test |
| 1064 |
test |
| 1065 |
$ hg cat sub/repo/foo -Tjson | sed 's|\\\\|/|g' |
| 1066 |
[ |
| 1067 |
{ |
| 1068 |
"data": "test\ntest\n", |
| 1069 |
"path": "foo" |
| 1070 |
} |
| 1071 |
] |
| 1072 |
|
| 1073 |
non-exact match: |
| 1074 |
|
| 1075 |
$ hg cat -T '{path|relpath}\n' 'glob:**' |
| 1076 |
.hgsub |
| 1077 |
.hgsubstate |
| 1078 |
sub/repo/foo |
| 1079 |
$ hg cat -T '{path|relpath}\n' 're:^sub' |
| 1080 |
sub/repo/foo |
| 1081 |
|
| 1082 |
missing subrepos in working directory: |
| 1083 |
|
| 1084 |
$ mkdir -p tmp/sub/repo |
| 1085 |
$ hg cat -r 0 --output tmp/%p_p sub/repo/foo |
| 1086 |
$ cat tmp/sub/repo/foo_p |
| 1087 |
test |
| 1088 |
$ mv sub/repo sub_ |
| 1089 |
$ hg cat sub/repo/baz |
| 1090 |
skipping missing subrepository: sub/repo |
| 1091 |
[1] |
| 1092 |
$ rm -rf sub/repo |
| 1093 |
$ mv sub_ sub/repo |
| 1094 |
$ cd .. |
| 1095 |
|
| 1096 |
Create repo without default path, pull top repo, and see what happens on update |
| 1097 |
|
| 1098 |
$ hg init issue1852b |
| 1099 |
$ hg -R issue1852b pull issue1852a |
| 1100 |
pulling from issue1852a |
| 1101 |
requesting all changes |
| 1102 |
adding changesets |
| 1103 |
adding manifests |
| 1104 |
adding file changes |
| 1105 |
added 2 changesets with 3 changes to 2 files |
| 1106 |
new changesets 19487b456929:be5eb94e7215 |
| 1107 |
(run 'hg update' to get a working copy) |
| 1108 |
$ hg -R issue1852b update |
| 1109 |
abort: default path for subrepository not found (in subrepository "sub/repo") |
| 1110 |
[255] |
| 1111 |
|
| 1112 |
Ensure a full traceback, not just the SubrepoAbort part |
| 1113 |
|
| 1114 |
$ hg -R issue1852b update --traceback 2>&1 | grep 'raise error\.Abort' |
| 1115 |
raise error.Abort(_(b"default path for subrepository not found")) |
| 1116 |
|
| 1117 |
Pull -u now doesn't help |
| 1118 |
|
| 1119 |
$ hg -R issue1852b pull -u issue1852a |
| 1120 |
pulling from issue1852a |
| 1121 |
searching for changes |
| 1122 |
no changes found |
| 1123 |
|
| 1124 |
Try the same, but with pull -u |
| 1125 |
|
| 1126 |
$ hg init issue1852c |
| 1127 |
$ hg -R issue1852c pull -r0 -u issue1852a |
| 1128 |
pulling from issue1852a |
| 1129 |
adding changesets |
| 1130 |
adding manifests |
| 1131 |
adding file changes |
| 1132 |
added 1 changesets with 2 changes to 2 files |
| 1133 |
new changesets 19487b456929 |
| 1134 |
cloning subrepo sub/repo from issue1852a/sub/repo |
| 1135 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1136 |
|
| 1137 |
Try to push from the other side |
| 1138 |
|
| 1139 |
$ hg -R issue1852a push `pwd`/issue1852c |
| 1140 |
pushing to $TESTTMP/issue1852c |
| 1141 |
pushing subrepo sub/repo to $TESTTMP/issue1852c/sub/repo |
| 1142 |
searching for changes |
| 1143 |
no changes found |
| 1144 |
searching for changes |
| 1145 |
adding changesets |
| 1146 |
adding manifests |
| 1147 |
adding file changes |
| 1148 |
added 1 changesets with 1 changes to 1 files |
| 1149 |
|
| 1150 |
Incoming and outgoing should not use the default path: |
| 1151 |
|
| 1152 |
$ hg clone -q issue1852a issue1852d |
| 1153 |
$ hg -R issue1852d outgoing --subrepos issue1852c |
| 1154 |
comparing with issue1852c |
| 1155 |
searching for changes |
| 1156 |
no changes found |
| 1157 |
comparing with issue1852c/sub/repo |
| 1158 |
searching for changes |
| 1159 |
no changes found |
| 1160 |
[1] |
| 1161 |
$ hg -R issue1852d incoming --subrepos issue1852c |
| 1162 |
comparing with issue1852c |
| 1163 |
searching for changes |
| 1164 |
no changes found |
| 1165 |
comparing with issue1852c/sub/repo |
| 1166 |
searching for changes |
| 1167 |
no changes found |
| 1168 |
[1] |
| 1169 |
|
| 1170 |
Check that merge of a new subrepo doesn't write the uncommitted state to |
| 1171 |
.hgsubstate (issue4622) |
| 1172 |
|
| 1173 |
$ hg init issue1852a/addedsub |
| 1174 |
$ echo zzz > issue1852a/addedsub/zz.txt |
| 1175 |
$ hg -R issue1852a/addedsub ci -Aqm "initial ZZ" |
| 1176 |
|
| 1177 |
$ hg clone issue1852a/addedsub issue1852d/addedsub |
| 1178 |
updating to branch default |
| 1179 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1180 |
|
| 1181 |
$ echo def > issue1852a/sub/repo/foo |
| 1182 |
$ hg -R issue1852a ci -SAm 'tweaked subrepo' |
| 1183 |
adding tmp/sub/repo/foo_p |
| 1184 |
committing subrepository sub/repo |
| 1185 |
|
| 1186 |
$ echo 'addedsub = addedsub' >> issue1852d/.hgsub |
| 1187 |
$ echo xyz > issue1852d/sub/repo/foo |
| 1188 |
$ hg -R issue1852d pull -u |
| 1189 |
pulling from $TESTTMP/issue1852a |
| 1190 |
searching for changes |
| 1191 |
adding changesets |
| 1192 |
adding manifests |
| 1193 |
adding file changes |
| 1194 |
added 1 changesets with 2 changes to 2 files |
| 1195 |
new changesets c82b79fdcc5b |
| 1196 |
subrepository sub/repo diverged (local revision: f42d5c7504a8, remote revision: 46cd4aac504c) |
| 1197 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. |
| 1198 |
what do you want to do? m |
| 1199 |
pulling subrepo sub/repo from $TESTTMP/issue1852a/sub/repo |
| 1200 |
searching for changes |
| 1201 |
adding changesets |
| 1202 |
adding manifests |
| 1203 |
adding file changes |
| 1204 |
added 1 changesets with 1 changes to 1 files |
| 1205 |
new changesets 46cd4aac504c |
| 1206 |
subrepository sources for sub/repo differ |
| 1207 |
you can use (l)ocal source (f42d5c7504a8) or (r)emote source (46cd4aac504c). |
| 1208 |
what do you want to do? l |
| 1209 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1210 |
$ cat issue1852d/.hgsubstate |
| 1211 |
f42d5c7504a811dda50f5cf3e5e16c3330b87172 sub/repo |
| 1212 |
|
| 1213 |
Check status of files when none of them belong to the first |
| 1214 |
subrepository: |
| 1215 |
|
| 1216 |
$ hg init subrepo-status |
| 1217 |
$ cd subrepo-status |
| 1218 |
$ hg init subrepo-1 |
| 1219 |
$ hg init subrepo-2 |
| 1220 |
$ cd subrepo-2 |
| 1221 |
$ touch file |
| 1222 |
$ hg add file |
| 1223 |
$ cd .. |
| 1224 |
$ echo subrepo-1 = subrepo-1 > .hgsub |
| 1225 |
$ echo subrepo-2 = subrepo-2 >> .hgsub |
| 1226 |
$ hg add .hgsub |
| 1227 |
$ hg ci -m 'Added subrepos' |
| 1228 |
committing subrepository subrepo-2 |
| 1229 |
$ hg st subrepo-2/file |
| 1230 |
|
| 1231 |
Check that share works with subrepo |
| 1232 |
$ hg --config extensions.share= share . ../shared |
| 1233 |
updating working directory |
| 1234 |
sharing subrepo subrepo-1 from $TESTTMP/subrepo-status/subrepo-1 |
| 1235 |
sharing subrepo subrepo-2 from $TESTTMP/subrepo-status/subrepo-2 |
| 1236 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1237 |
$ find ../shared/* | sort |
| 1238 |
../shared/subrepo-1 |
| 1239 |
../shared/subrepo-1/.hg |
| 1240 |
../shared/subrepo-1/.hg/cache |
| 1241 |
../shared/subrepo-1/.hg/cache/storehash |
| 1242 |
../shared/subrepo-1/.hg/cache/storehash/* (glob) |
| 1243 |
../shared/subrepo-1/.hg/hgrc |
| 1244 |
../shared/subrepo-1/.hg/requires |
| 1245 |
../shared/subrepo-1/.hg/sharedpath |
| 1246 |
../shared/subrepo-1/.hg/wcache |
| 1247 |
../shared/subrepo-2 |
| 1248 |
../shared/subrepo-2/.hg |
| 1249 |
../shared/subrepo-2/.hg/branch |
| 1250 |
../shared/subrepo-2/.hg/cache |
| 1251 |
../shared/subrepo-2/.hg/cache/storehash |
| 1252 |
../shared/subrepo-2/.hg/cache/storehash/* (glob) |
| 1253 |
../shared/subrepo-2/.hg/dirstate |
| 1254 |
../shared/subrepo-2/.hg/hgrc |
| 1255 |
../shared/subrepo-2/.hg/requires |
| 1256 |
../shared/subrepo-2/.hg/sharedpath |
| 1257 |
../shared/subrepo-2/.hg/wcache |
| 1258 |
../shared/subrepo-2/.hg/wcache/checkisexec (execbit !) |
| 1259 |
../shared/subrepo-2/.hg/wcache/checklink (symlink no-rust !) |
| 1260 |
../shared/subrepo-2/.hg/wcache/checklink-target (symlink no-rust !) |
| 1261 |
../shared/subrepo-2/.hg/wcache/manifestfulltextcache (no-rust !) |
| 1262 |
../shared/subrepo-2/file |
| 1263 |
$ hg -R ../shared in |
| 1264 |
abort: repository default not found |
| 1265 |
[255] |
| 1266 |
$ hg -R ../shared/subrepo-2 showconfig paths |
| 1267 |
paths.default=$TESTTMP/subrepo-status/subrepo-2 |
| 1268 |
$ hg -R ../shared/subrepo-1 sum --remote |
| 1269 |
parent: -1:000000000000 tip (empty repository) |
| 1270 |
branch: default |
| 1271 |
commit: (clean) |
| 1272 |
update: (current) |
| 1273 |
remote: (synced) |
| 1274 |
|
| 1275 |
Check hg update --clean |
| 1276 |
$ cd $TESTTMP/t |
| 1277 |
$ rm -r t/t.orig |
| 1278 |
$ hg status -S --all |
| 1279 |
C .hgsub |
| 1280 |
C .hgsubstate |
| 1281 |
C a |
| 1282 |
C s/.hgsub |
| 1283 |
C s/.hgsubstate |
| 1284 |
C s/a |
| 1285 |
C s/ss/a |
| 1286 |
C t/t |
| 1287 |
$ echo c1 > s/a |
| 1288 |
$ cd s |
| 1289 |
$ echo c1 > b |
| 1290 |
$ echo c1 > c |
| 1291 |
$ hg add b |
| 1292 |
$ cd .. |
| 1293 |
$ hg status -S |
| 1294 |
M s/a |
| 1295 |
A s/b |
| 1296 |
? s/c |
| 1297 |
$ hg update -C |
| 1298 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1299 |
updated to "925c17564ef8: 13" |
| 1300 |
2 other heads for branch "default" |
| 1301 |
$ hg status -S |
| 1302 |
? s/b |
| 1303 |
? s/c |
| 1304 |
|
| 1305 |
Sticky subrepositories, no changes |
| 1306 |
$ cd $TESTTMP/t |
| 1307 |
$ hg id |
| 1308 |
925c17564ef8 tip |
| 1309 |
$ hg -R s id |
| 1310 |
12a213df6fa9 tip |
| 1311 |
$ hg -R t id |
| 1312 |
52c0adc0515a tip |
| 1313 |
$ hg update 11 |
| 1314 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1315 |
$ hg id |
| 1316 |
365661e5936a |
| 1317 |
$ hg -R s id |
| 1318 |
fc627a69481f |
| 1319 |
$ hg -R t id |
| 1320 |
e95bcfa18a35 |
| 1321 |
|
| 1322 |
Sticky subrepositories, file changes |
| 1323 |
$ touch s/f1 |
| 1324 |
$ touch t/f1 |
| 1325 |
$ hg add -S s/f1 |
| 1326 |
$ hg add -S t/f1 |
| 1327 |
$ hg id |
| 1328 |
365661e5936a+ |
| 1329 |
$ hg -R s id |
| 1330 |
fc627a69481f+ |
| 1331 |
$ hg -R t id |
| 1332 |
e95bcfa18a35+ |
| 1333 |
$ hg update tip |
| 1334 |
subrepository s diverged (local revision: fc627a69481f, remote revision: 12a213df6fa9) |
| 1335 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. |
| 1336 |
what do you want to do? m |
| 1337 |
subrepository sources for s differ |
| 1338 |
you can use (l)ocal source (fc627a69481f) or (r)emote source (12a213df6fa9). |
| 1339 |
what do you want to do? l |
| 1340 |
subrepository t diverged (local revision: e95bcfa18a35, remote revision: 52c0adc0515a) |
| 1341 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. |
| 1342 |
what do you want to do? m |
| 1343 |
subrepository sources for t differ |
| 1344 |
you can use (l)ocal source (e95bcfa18a35) or (r)emote source (52c0adc0515a). |
| 1345 |
what do you want to do? l |
| 1346 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1347 |
$ hg id |
| 1348 |
925c17564ef8+ tip |
| 1349 |
$ hg -R s id |
| 1350 |
fc627a69481f+ |
| 1351 |
$ hg -R t id |
| 1352 |
e95bcfa18a35+ |
| 1353 |
$ hg update --clean tip |
| 1354 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1355 |
|
| 1356 |
Sticky subrepository, revision updates |
| 1357 |
$ hg id |
| 1358 |
925c17564ef8 tip |
| 1359 |
$ hg -R s id |
| 1360 |
12a213df6fa9 tip |
| 1361 |
$ hg -R t id |
| 1362 |
52c0adc0515a tip |
| 1363 |
$ cd s |
| 1364 |
$ hg update -r -2 |
| 1365 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1366 |
$ cd ../t |
| 1367 |
$ hg update -r 2 |
| 1368 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1369 |
$ cd .. |
| 1370 |
$ hg update 10 |
| 1371 |
subrepository s diverged (local revision: 12a213df6fa9, remote revision: fc627a69481f) |
| 1372 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. |
| 1373 |
what do you want to do? m |
| 1374 |
subrepository t diverged (local revision: 52c0adc0515a, remote revision: 20a0db6fbf6c) |
| 1375 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. |
| 1376 |
what do you want to do? m |
| 1377 |
subrepository sources for t differ (in checked out version) |
| 1378 |
you can use (l)ocal source (7af322bc1198) or (r)emote source (20a0db6fbf6c). |
| 1379 |
what do you want to do? l |
| 1380 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1381 |
$ hg id |
| 1382 |
e45c8b14af55+ |
| 1383 |
$ hg -R s id |
| 1384 |
02dcf1d70411 |
| 1385 |
$ hg -R t id |
| 1386 |
7af322bc1198 |
| 1387 |
|
| 1388 |
Sticky subrepository, file changes and revision updates |
| 1389 |
$ touch s/f1 |
| 1390 |
$ touch t/f1 |
| 1391 |
$ hg add -S s/f1 |
| 1392 |
$ hg add -S t/f1 |
| 1393 |
$ hg id |
| 1394 |
e45c8b14af55+ |
| 1395 |
$ hg -R s id |
| 1396 |
02dcf1d70411+ |
| 1397 |
$ hg -R t id |
| 1398 |
7af322bc1198+ |
| 1399 |
$ hg update tip |
| 1400 |
subrepository s diverged (local revision: 12a213df6fa9, remote revision: 12a213df6fa9) |
| 1401 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. |
| 1402 |
what do you want to do? m |
| 1403 |
subrepository sources for s differ |
| 1404 |
you can use (l)ocal source (02dcf1d70411) or (r)emote source (12a213df6fa9). |
| 1405 |
what do you want to do? l |
| 1406 |
subrepository t diverged (local revision: 52c0adc0515a, remote revision: 52c0adc0515a) |
| 1407 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. |
| 1408 |
what do you want to do? m |
| 1409 |
subrepository sources for t differ |
| 1410 |
you can use (l)ocal source (7af322bc1198) or (r)emote source (52c0adc0515a). |
| 1411 |
what do you want to do? l |
| 1412 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1413 |
$ hg id |
| 1414 |
925c17564ef8+ tip |
| 1415 |
$ hg -R s id |
| 1416 |
02dcf1d70411+ |
| 1417 |
$ hg -R t id |
| 1418 |
7af322bc1198+ |
| 1419 |
|
| 1420 |
Sticky repository, update --clean |
| 1421 |
$ hg update --clean tip |
| 1422 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1423 |
$ hg id |
| 1424 |
925c17564ef8 tip |
| 1425 |
$ hg -R s id |
| 1426 |
12a213df6fa9 tip |
| 1427 |
$ hg -R t id |
| 1428 |
52c0adc0515a tip |
| 1429 |
|
| 1430 |
Test subrepo already at intended revision: |
| 1431 |
$ cd s |
| 1432 |
$ hg update fc627a69481f |
| 1433 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1434 |
$ cd .. |
| 1435 |
$ hg update 11 |
| 1436 |
subrepository s diverged (local revision: 12a213df6fa9, remote revision: fc627a69481f) |
| 1437 |
you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. |
| 1438 |
what do you want to do? m |
| 1439 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1440 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1441 |
$ hg id -n |
| 1442 |
11+ |
| 1443 |
$ hg -R s id |
| 1444 |
fc627a69481f |
| 1445 |
$ hg -R t id |
| 1446 |
e95bcfa18a35 |
| 1447 |
|
| 1448 |
Test that removing .hgsubstate doesn't break anything: |
| 1449 |
|
| 1450 |
$ hg rm -f .hgsubstate |
| 1451 |
$ hg ci -mrm |
| 1452 |
nothing changed |
| 1453 |
[1] |
| 1454 |
$ hg log -vr tip |
| 1455 |
changeset: 13:925c17564ef8 |
| 1456 |
tag: tip |
| 1457 |
user: test |
| 1458 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 1459 |
files: .hgsubstate |
| 1460 |
description: |
| 1461 |
13 |
| 1462 |
|
| 1463 |
|
| 1464 |
|
| 1465 |
Test that removing .hgsub removes .hgsubstate: |
| 1466 |
|
| 1467 |
$ hg rm .hgsub |
| 1468 |
$ hg ci -mrm2 |
| 1469 |
created new head |
| 1470 |
$ hg log -vr tip |
| 1471 |
changeset: 14:2400bccd50af |
| 1472 |
tag: tip |
| 1473 |
parent: 11:365661e5936a |
| 1474 |
user: test |
| 1475 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 1476 |
files: .hgsub .hgsubstate |
| 1477 |
description: |
| 1478 |
rm2 |
| 1479 |
|
| 1480 |
|
| 1481 |
Test issue3153: diff -S with deleted subrepos |
| 1482 |
|
| 1483 |
$ hg diff --nodates -S -c . |
| 1484 |
diff -r 365661e5936a -r 2400bccd50af .hgsub |
| 1485 |
--- a/.hgsub |
| 1486 |
+++ /dev/null |
| 1487 |
@@ -1,2 +0,0 @@ |
| 1488 |
-s = s |
| 1489 |
-t = t |
| 1490 |
diff -r 365661e5936a -r 2400bccd50af .hgsubstate |
| 1491 |
--- a/.hgsubstate |
| 1492 |
+++ /dev/null |
| 1493 |
@@ -1,2 +0,0 @@ |
| 1494 |
-fc627a69481fcbe5f1135069e8a3881c023e4cf5 s |
| 1495 |
-e95bcfa18a358dc4936da981ebf4147b4cad1362 t |
| 1496 |
|
| 1497 |
Test behavior of add for explicit path in subrepo: |
| 1498 |
$ cd .. |
| 1499 |
$ hg init explicit |
| 1500 |
$ cd explicit |
| 1501 |
$ echo s = s > .hgsub |
| 1502 |
$ hg add .hgsub |
| 1503 |
$ hg init s |
| 1504 |
$ hg ci -m0 |
| 1505 |
Adding with an explicit path in a subrepo adds the file |
| 1506 |
$ echo c1 > f1 |
| 1507 |
$ echo c2 > s/f2 |
| 1508 |
$ hg st -S |
| 1509 |
? f1 |
| 1510 |
? s/f2 |
| 1511 |
$ hg add s/f2 |
| 1512 |
$ hg st -S |
| 1513 |
A s/f2 |
| 1514 |
? f1 |
| 1515 |
$ hg ci -R s -m0 |
| 1516 |
$ hg ci -Am1 |
| 1517 |
adding f1 |
| 1518 |
Adding with an explicit path in a subrepo with -S has the same behavior |
| 1519 |
$ echo c3 > f3 |
| 1520 |
$ echo c4 > s/f4 |
| 1521 |
$ hg st -S |
| 1522 |
? f3 |
| 1523 |
? s/f4 |
| 1524 |
$ hg add -S s/f4 |
| 1525 |
$ hg st -S |
| 1526 |
A s/f4 |
| 1527 |
? f3 |
| 1528 |
$ hg ci -R s -m1 |
| 1529 |
$ hg ci -Ama2 |
| 1530 |
adding f3 |
| 1531 |
Adding without a path or pattern silently ignores subrepos |
| 1532 |
$ echo c5 > f5 |
| 1533 |
$ echo c6 > s/f6 |
| 1534 |
$ echo c7 > s/f7 |
| 1535 |
$ hg st -S |
| 1536 |
? f5 |
| 1537 |
? s/f6 |
| 1538 |
? s/f7 |
| 1539 |
$ hg add |
| 1540 |
adding f5 |
| 1541 |
$ hg st -S |
| 1542 |
A f5 |
| 1543 |
? s/f6 |
| 1544 |
? s/f7 |
| 1545 |
$ hg ci -R s -Am2 |
| 1546 |
adding f6 |
| 1547 |
adding f7 |
| 1548 |
$ hg ci -m3 |
| 1549 |
Adding without a path or pattern with -S also adds files in subrepos |
| 1550 |
$ echo c8 > f8 |
| 1551 |
$ echo c9 > s/f9 |
| 1552 |
$ echo c10 > s/f10 |
| 1553 |
$ hg st -S |
| 1554 |
? f8 |
| 1555 |
? s/f10 |
| 1556 |
? s/f9 |
| 1557 |
$ hg add -S |
| 1558 |
adding f8 |
| 1559 |
adding s/f10 |
| 1560 |
adding s/f9 |
| 1561 |
$ hg st -S |
| 1562 |
A f8 |
| 1563 |
A s/f10 |
| 1564 |
A s/f9 |
| 1565 |
$ hg ci -R s -m3 |
| 1566 |
$ hg ci -m4 |
| 1567 |
Adding with a pattern silently ignores subrepos |
| 1568 |
$ echo c11 > fm11 |
| 1569 |
$ echo c12 > fn12 |
| 1570 |
$ echo c13 > s/fm13 |
| 1571 |
$ echo c14 > s/fn14 |
| 1572 |
$ hg st -S |
| 1573 |
? fm11 |
| 1574 |
? fn12 |
| 1575 |
? s/fm13 |
| 1576 |
? s/fn14 |
| 1577 |
$ hg add 'glob:**fm*' |
| 1578 |
adding fm11 |
| 1579 |
$ hg st -S |
| 1580 |
A fm11 |
| 1581 |
? fn12 |
| 1582 |
? s/fm13 |
| 1583 |
? s/fn14 |
| 1584 |
$ hg ci -R s -Am4 |
| 1585 |
adding fm13 |
| 1586 |
adding fn14 |
| 1587 |
$ hg ci -Am5 |
| 1588 |
adding fn12 |
| 1589 |
Adding with a pattern with -S also adds matches in subrepos |
| 1590 |
$ echo c15 > fm15 |
| 1591 |
$ echo c16 > fn16 |
| 1592 |
$ echo c17 > s/fm17 |
| 1593 |
$ echo c18 > s/fn18 |
| 1594 |
$ hg st -S |
| 1595 |
? fm15 |
| 1596 |
? fn16 |
| 1597 |
? s/fm17 |
| 1598 |
? s/fn18 |
| 1599 |
$ hg add -S 'glob:**fm*' |
| 1600 |
adding fm15 |
| 1601 |
adding s/fm17 |
| 1602 |
$ hg st -S |
| 1603 |
A fm15 |
| 1604 |
A s/fm17 |
| 1605 |
? fn16 |
| 1606 |
? s/fn18 |
| 1607 |
$ hg ci -R s -Am5 |
| 1608 |
adding fn18 |
| 1609 |
$ hg ci -Am6 |
| 1610 |
adding fn16 |
| 1611 |
|
| 1612 |
Test behavior of forget for explicit path in subrepo: |
| 1613 |
Forgetting an explicit path in a subrepo untracks the file |
| 1614 |
$ echo c19 > s/f19 |
| 1615 |
$ hg add s/f19 |
| 1616 |
$ hg st -S |
| 1617 |
A s/f19 |
| 1618 |
$ hg forget s/f19 |
| 1619 |
$ hg st -S |
| 1620 |
? s/f19 |
| 1621 |
$ rm s/f19 |
| 1622 |
$ cd .. |
| 1623 |
|
| 1624 |
Courtesy phases synchronisation to publishing server does not block the push |
| 1625 |
(issue3781) |
| 1626 |
|
| 1627 |
$ cp -R main issue3781 |
| 1628 |
$ cp -R main issue3781-dest |
| 1629 |
$ cd issue3781-dest/s |
| 1630 |
$ hg phase tip # show we have draft changeset |
| 1631 |
5: draft |
| 1632 |
$ chmod a-w .hg/store/phaseroots # prevent phase push |
| 1633 |
$ cd ../../issue3781 |
| 1634 |
$ cat >> .hg/hgrc << EOF |
| 1635 |
> [paths] |
| 1636 |
> default=../issue3781-dest/ |
| 1637 |
> EOF |
| 1638 |
$ hg push --config devel.legacy.exchange=bundle1 |
| 1639 |
pushing to $TESTTMP/issue3781-dest |
| 1640 |
pushing subrepo s to $TESTTMP/issue3781-dest/s |
| 1641 |
searching for changes |
| 1642 |
no changes found |
| 1643 |
searching for changes |
| 1644 |
no changes found |
| 1645 |
[1] |
| 1646 |
# clean the push cache |
| 1647 |
$ rm s/.hg/cache/storehash/* |
| 1648 |
$ hg push # bundle2+ |
| 1649 |
pushing to $TESTTMP/issue3781-dest |
| 1650 |
pushing subrepo s to $TESTTMP/issue3781-dest/s |
| 1651 |
searching for changes |
| 1652 |
no changes found |
| 1653 |
searching for changes |
| 1654 |
no changes found |
| 1655 |
[1] |
| 1656 |
$ cd .. |
| 1657 |
|
| 1658 |
Test phase choice for newly created commit with "phases.subrepochecks" |
| 1659 |
configuration |
| 1660 |
|
| 1661 |
$ cd t |
| 1662 |
$ hg update -q -r 12 |
| 1663 |
|
| 1664 |
$ cat >> s/ss/.hg/hgrc <<EOF |
| 1665 |
> [phases] |
| 1666 |
> new-commit = secret |
| 1667 |
> EOF |
| 1668 |
$ cat >> s/.hg/hgrc <<EOF |
| 1669 |
> [phases] |
| 1670 |
> new-commit = draft |
| 1671 |
> EOF |
| 1672 |
$ echo phasecheck1 >> s/ss/a |
| 1673 |
$ hg -R s commit -S --config phases.checksubrepos=abort -m phasecheck1 |
| 1674 |
committing subrepository ss |
| 1675 |
transaction abort! |
| 1676 |
rollback completed |
| 1677 |
abort: can't commit in draft phase conflicting secret from subrepository ss |
| 1678 |
[255] |
| 1679 |
$ echo phasecheck2 >> s/ss/a |
| 1680 |
$ hg -R s commit -S --config phases.checksubrepos=ignore -m phasecheck2 |
| 1681 |
committing subrepository ss |
| 1682 |
$ hg -R s/ss phase tip |
| 1683 |
3: secret |
| 1684 |
$ hg -R s phase tip |
| 1685 |
6: draft |
| 1686 |
$ echo phasecheck3 >> s/ss/a |
| 1687 |
$ hg -R s commit -S -m phasecheck3 |
| 1688 |
committing subrepository ss |
| 1689 |
warning: changes are committed in secret phase from subrepository ss |
| 1690 |
$ hg -R s/ss phase tip |
| 1691 |
4: secret |
| 1692 |
$ hg -R s phase tip |
| 1693 |
7: secret |
| 1694 |
|
| 1695 |
$ cat >> t/.hg/hgrc <<EOF |
| 1696 |
> [phases] |
| 1697 |
> new-commit = draft |
| 1698 |
> EOF |
| 1699 |
$ cat >> .hg/hgrc <<EOF |
| 1700 |
> [phases] |
| 1701 |
> new-commit = public |
| 1702 |
> EOF |
| 1703 |
$ echo phasecheck4 >> s/ss/a |
| 1704 |
$ echo phasecheck4 >> t/t |
| 1705 |
$ hg commit -S -m phasecheck4 |
| 1706 |
committing subrepository s |
| 1707 |
committing subrepository s/ss |
| 1708 |
warning: changes are committed in secret phase from subrepository ss |
| 1709 |
committing subrepository t |
| 1710 |
warning: changes are committed in secret phase from subrepository s |
| 1711 |
created new head |
| 1712 |
$ hg -R s/ss phase tip |
| 1713 |
5: secret |
| 1714 |
$ hg -R s phase tip |
| 1715 |
8: secret |
| 1716 |
$ hg -R t phase tip |
| 1717 |
6: draft |
| 1718 |
$ hg phase tip |
| 1719 |
15: secret |
| 1720 |
|
| 1721 |
$ cd .. |
| 1722 |
|
| 1723 |
|
| 1724 |
Test that commit --secret works on both repo and subrepo (issue4182) |
| 1725 |
|
| 1726 |
$ cd main |
| 1727 |
$ echo secret >> b |
| 1728 |
$ echo secret >> s/b |
| 1729 |
$ hg commit --secret --subrepo -m "secret" |
| 1730 |
committing subrepository s |
| 1731 |
$ hg phase -r . |
| 1732 |
6: secret |
| 1733 |
$ cd s |
| 1734 |
$ hg phase -r . |
| 1735 |
6: secret |
| 1736 |
$ cd ../../ |
| 1737 |
|
| 1738 |
Test "subrepos" template keyword |
| 1739 |
|
| 1740 |
$ cd t |
| 1741 |
$ hg update -q 15 |
| 1742 |
$ cat > .hgsub <<EOF |
| 1743 |
> s = s |
| 1744 |
> EOF |
| 1745 |
$ hg commit -m "16" |
| 1746 |
warning: changes are committed in secret phase from subrepository s |
| 1747 |
|
| 1748 |
(addition of ".hgsub" itself) |
| 1749 |
|
| 1750 |
$ hg diff --nodates -c 1 .hgsubstate |
| 1751 |
diff -r f7b1eb17ad24 -r 7cf8cfea66e4 .hgsubstate |
| 1752 |
--- /dev/null |
| 1753 |
+++ b/.hgsubstate |
| 1754 |
@@ -0,0 +1,1 @@ |
| 1755 |
+e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 1756 |
$ hg log -r 1 --template "{p1node|short} {p2node|short}\n{subrepos % '{subrepo}\n'}" |
| 1757 |
f7b1eb17ad24 000000000000 |
| 1758 |
s |
| 1759 |
|
| 1760 |
(modification of existing entry) |
| 1761 |
|
| 1762 |
$ hg diff --nodates -c 2 .hgsubstate |
| 1763 |
diff -r 7cf8cfea66e4 -r df30734270ae .hgsubstate |
| 1764 |
--- a/.hgsubstate |
| 1765 |
+++ b/.hgsubstate |
| 1766 |
@@ -1,1 +1,1 @@ |
| 1767 |
-e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 1768 |
+dc73e2e6d2675eb2e41e33c205f4bdab4ea5111d s |
| 1769 |
$ hg log -r 2 --template "{p1node|short} {p2node|short}\n{subrepos % '{subrepo}\n'}" |
| 1770 |
7cf8cfea66e4 000000000000 |
| 1771 |
s |
| 1772 |
|
| 1773 |
(addition of entry) |
| 1774 |
|
| 1775 |
$ hg diff --nodates -c 5 .hgsubstate |
| 1776 |
diff -r 7cf8cfea66e4 -r 1f14a2e2d3ec .hgsubstate |
| 1777 |
--- a/.hgsubstate |
| 1778 |
+++ b/.hgsubstate |
| 1779 |
@@ -1,1 +1,2 @@ |
| 1780 |
e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 1781 |
+60ca1237c19474e7a3978b0dc1ca4e6f36d51382 t |
| 1782 |
$ hg log -r 5 --template "{p1node|short} {p2node|short}\n{subrepos % '{subrepo}\n'}" |
| 1783 |
7cf8cfea66e4 000000000000 |
| 1784 |
t |
| 1785 |
|
| 1786 |
(removal of existing entry) |
| 1787 |
|
| 1788 |
$ hg diff --nodates -c 16 .hgsubstate |
| 1789 |
diff -r 8bec38d2bd0b -r f2f70bc3d3c9 .hgsubstate |
| 1790 |
--- a/.hgsubstate |
| 1791 |
+++ b/.hgsubstate |
| 1792 |
@@ -1,2 +1,1 @@ |
| 1793 |
0731af8ca9423976d3743119d0865097c07bdc1b s |
| 1794 |
-e202dc79b04c88a636ea8913d9182a1346d9b3dc t |
| 1795 |
$ hg log -r 16 --template "{p1node|short} {p2node|short}\n{subrepos % '{subrepo}\n'}" |
| 1796 |
8bec38d2bd0b 000000000000 |
| 1797 |
t |
| 1798 |
|
| 1799 |
(merging) |
| 1800 |
|
| 1801 |
$ hg diff --nodates -c 9 .hgsubstate |
| 1802 |
diff -r f6affe3fbfaa -r f0d2028bf86d .hgsubstate |
| 1803 |
--- a/.hgsubstate |
| 1804 |
+++ b/.hgsubstate |
| 1805 |
@@ -1,1 +1,2 @@ |
| 1806 |
fc627a69481fcbe5f1135069e8a3881c023e4cf5 s |
| 1807 |
+60ca1237c19474e7a3978b0dc1ca4e6f36d51382 t |
| 1808 |
$ hg log -r 9 --template "{p1node|short} {p2node|short}\n{subrepos % '{subrepo}\n'}" |
| 1809 |
f6affe3fbfaa 1f14a2e2d3ec |
| 1810 |
t |
| 1811 |
|
| 1812 |
(removal of ".hgsub" itself) |
| 1813 |
|
| 1814 |
$ hg diff --nodates -c 8 .hgsubstate |
| 1815 |
diff -r f94576341bcf -r 96615c1dad2d .hgsubstate |
| 1816 |
--- a/.hgsubstate |
| 1817 |
+++ /dev/null |
| 1818 |
@@ -1,2 +0,0 @@ |
| 1819 |
-e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 s |
| 1820 |
-7af322bc1198a32402fe903e0b7ebcfc5c9bf8f4 t |
| 1821 |
$ hg log -r 8 --template "{p1node|short} {p2node|short}\n{subrepos % '{subrepo}\n'}" |
| 1822 |
f94576341bcf 000000000000 |
| 1823 |
|
| 1824 |
Test that '[paths]' is configured correctly at subrepo creation |
| 1825 |
|
| 1826 |
$ cd $TESTTMP/tc |
| 1827 |
$ cat > .hgsub <<EOF |
| 1828 |
> # to clear bogus subrepo path 'bogus=[boguspath' |
| 1829 |
> s = s |
| 1830 |
> t = t |
| 1831 |
> EOF |
| 1832 |
$ hg update -q --clean null |
| 1833 |
$ rm -rf s t |
| 1834 |
$ cat >> .hg/hgrc <<EOF |
| 1835 |
> [paths] |
| 1836 |
> default-push = /foo/bar |
| 1837 |
> EOF |
| 1838 |
$ hg update -q |
| 1839 |
$ cat s/.hg/hgrc |
| 1840 |
[paths] |
| 1841 |
default = $TESTTMP/t/s |
| 1842 |
default-push = /foo/bar/s |
| 1843 |
$ cat s/ss/.hg/hgrc |
| 1844 |
[paths] |
| 1845 |
default = $TESTTMP/t/s/ss |
| 1846 |
default-push = /foo/bar/s/ss |
| 1847 |
$ cat t/.hg/hgrc |
| 1848 |
[paths] |
| 1849 |
default = $TESTTMP/t/t |
| 1850 |
default-push = /foo/bar/t |
| 1851 |
|
| 1852 |
$ cd $TESTTMP/t |
| 1853 |
$ hg up -qC 0 |
| 1854 |
$ echo 'bar' > bar.txt |
| 1855 |
$ hg ci -Am 'branch before subrepo add' |
| 1856 |
adding bar.txt |
| 1857 |
created new head |
| 1858 |
$ hg merge -r "first(subrepo('s'))" |
| 1859 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1860 |
(branch merge, don't forget to commit) |
| 1861 |
$ hg status -S -X '.hgsub*' |
| 1862 |
A s/a |
| 1863 |
? s/b |
| 1864 |
? s/c |
| 1865 |
? s/f1 |
| 1866 |
$ hg status -S --rev 'p2()' |
| 1867 |
A bar.txt |
| 1868 |
? s/b |
| 1869 |
? s/c |
| 1870 |
? s/f1 |
| 1871 |
$ hg diff -S -X '.hgsub*' --nodates |
| 1872 |
diff -r 000000000000 s/a |
| 1873 |
--- /dev/null |
| 1874 |
+++ b/s/a |
| 1875 |
@@ -0,0 +1,1 @@ |
| 1876 |
+a |
| 1877 |
$ hg diff -S --rev 'p2()' --nodates |
| 1878 |
diff -r 7cf8cfea66e4 bar.txt |
| 1879 |
--- /dev/null |
| 1880 |
+++ b/bar.txt |
| 1881 |
@@ -0,0 +1,1 @@ |
| 1882 |
+bar |
| 1883 |
|
| 1884 |
$ hg diff -X '.hgsub*' --nodates s |
| 1885 |
diff -r 000000000000 s/a |
| 1886 |
--- /dev/null |
| 1887 |
+++ b/s/a |
| 1888 |
@@ -0,0 +1,1 @@ |
| 1889 |
+a |
| 1890 |
$ hg diff -X '.hgsub*' --nodates s/a |
| 1891 |
diff -r 000000000000 s/a |
| 1892 |
--- /dev/null |
| 1893 |
+++ b/s/a |
| 1894 |
@@ -0,0 +1,1 @@ |
| 1895 |
+a |
| 1896 |
|
| 1897 |
$ cd .. |
| 1898 |
|
| 1899 |
test for ssh exploit 2017-07-25 |
| 1900 |
|
| 1901 |
$ cat >> $HGRCPATH << EOF |
| 1902 |
> [ui] |
| 1903 |
> ssh = sh -c "read l; read l; read l" |
| 1904 |
> EOF |
| 1905 |
|
| 1906 |
$ hg init malicious-proxycommand |
| 1907 |
$ cd malicious-proxycommand |
| 1908 |
$ echo 's = [hg]ssh://-oProxyCommand=touch${IFS}owned/path' > .hgsub |
| 1909 |
$ hg init s |
| 1910 |
$ cd s |
| 1911 |
$ echo init > init |
| 1912 |
$ hg add |
| 1913 |
adding init |
| 1914 |
$ hg commit -m init |
| 1915 |
$ cd .. |
| 1916 |
$ hg add .hgsub |
| 1917 |
$ hg ci -m 'add subrepo' |
| 1918 |
$ cd .. |
| 1919 |
$ hg clone malicious-proxycommand malicious-proxycommand-clone |
| 1920 |
updating to branch default |
| 1921 |
cloning subrepo s from ssh://-oProxyCommand%3Dtouch%24%7BIFS%7Downed/path |
| 1922 |
abort: potentially unsafe url: 'ssh://-oProxyCommand=touch${IFS}owned/path' (in subrepository "s") |
| 1923 |
[255] |
| 1924 |
|
| 1925 |
also check that a percent encoded '-' (%2D) doesn't work |
| 1926 |
|
| 1927 |
$ cd malicious-proxycommand |
| 1928 |
$ echo 's = [hg]ssh://%2DoProxyCommand=touch${IFS}owned/path' > .hgsub |
| 1929 |
$ hg ci -m 'change url to percent encoded' |
| 1930 |
$ cd .. |
| 1931 |
$ rm -r malicious-proxycommand-clone |
| 1932 |
$ hg clone malicious-proxycommand malicious-proxycommand-clone |
| 1933 |
updating to branch default |
| 1934 |
cloning subrepo s from ssh://-oProxyCommand%3Dtouch%24%7BIFS%7Downed/path |
| 1935 |
abort: potentially unsafe url: 'ssh://-oProxyCommand=touch${IFS}owned/path' (in subrepository "s") |
| 1936 |
[255] |
| 1937 |
|
| 1938 |
also check for a pipe |
| 1939 |
|
| 1940 |
$ cd malicious-proxycommand |
| 1941 |
$ echo 's = [hg]ssh://fakehost|touch${IFS}owned/path' > .hgsub |
| 1942 |
$ hg ci -m 'change url to pipe' |
| 1943 |
$ cd .. |
| 1944 |
$ rm -r malicious-proxycommand-clone |
| 1945 |
$ hg clone malicious-proxycommand malicious-proxycommand-clone |
| 1946 |
updating to branch default |
| 1947 |
cloning subrepo s from ssh://fakehost%7Ctouch%24%7BIFS%7Downed/path |
| 1948 |
abort: no suitable response from remote hg |
| 1949 |
[255] |
| 1950 |
$ [ ! -f owned ] || echo 'you got owned' |
| 1951 |
|
| 1952 |
also check that a percent encoded '|' (%7C) doesn't work |
| 1953 |
|
| 1954 |
$ cd malicious-proxycommand |
| 1955 |
$ echo 's = [hg]ssh://fakehost%7Ctouch%20owned/path' > .hgsub |
| 1956 |
$ hg ci -m 'change url to percent encoded pipe' |
| 1957 |
$ cd .. |
| 1958 |
$ rm -r malicious-proxycommand-clone |
| 1959 |
$ hg clone malicious-proxycommand malicious-proxycommand-clone |
| 1960 |
updating to branch default |
| 1961 |
cloning subrepo s from ssh://fakehost%7Ctouch%20owned/path |
| 1962 |
abort: no suitable response from remote hg |
| 1963 |
[255] |
| 1964 |
$ [ ! -f owned ] || echo 'you got owned' |
| 1965 |
|
| 1966 |
and bad usernames: |
| 1967 |
$ cd malicious-proxycommand |
| 1968 |
$ echo 's = [hg]ssh://-oProxyCommand=touch [email protected]/path' > .hgsub |
| 1969 |
$ hg ci -m 'owned username' |
| 1970 |
$ cd .. |
| 1971 |
$ rm -r malicious-proxycommand-clone |
| 1972 |
$ hg clone malicious-proxycommand malicious-proxycommand-clone |
| 1973 |
updating to branch default |
| 1974 |
cloning subrepo s from ssh://-oProxyCommand%3Dtouch%[email protected]/path |
| 1975 |
abort: potentially unsafe url: 'ssh://-oProxyCommand=touch [email protected]/path' (in subrepository "s") |
| 1976 |
[255] |
| 1977 |
|
| 1978 |
Test convert subrepositories including merge (issue5526): |
| 1979 |
|
| 1980 |
$ hg init tconv |
| 1981 |
$ hg convert --config extensions.convert= -q t/s tconv/s |
| 1982 |
$ hg convert --config extensions.convert= -q t/s/ss tconv/s/ss |
| 1983 |
$ hg convert --config extensions.convert= -q t/t tconv/t |
| 1984 |
|
| 1985 |
convert shouldn't fail because of pseudo filenode: |
| 1986 |
|
| 1987 |
$ hg convert --config extensions.convert= t tconv |
| 1988 |
scanning source... |
| 1989 |
sorting... |
| 1990 |
converting... |
| 1991 |
17 0 |
| 1992 |
16 1 |
| 1993 |
15 2 |
| 1994 |
14 3 |
| 1995 |
13 4 |
| 1996 |
12 5 |
| 1997 |
11 6 |
| 1998 |
10 7 |
| 1999 |
9 8 |
| 2000 |
8 9 |
| 2001 |
7 10 |
| 2002 |
6 11 |
| 2003 |
5 12 |
| 2004 |
4 13 |
| 2005 |
3 rm2 |
| 2006 |
2 phasecheck4 |
| 2007 |
1 16 |
| 2008 |
0 branch before subrepo add |
| 2009 |
|
| 2010 |
converted .hgsubstate should point to valid nodes: |
| 2011 |
|
| 2012 |
$ hg up -R tconv 9 |
| 2013 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 2014 |
$ cat tconv/.hgsubstate |
| 2015 |
fc627a69481fcbe5f1135069e8a3881c023e4cf5 s |
| 2016 |
60ca1237c19474e7a3978b0dc1ca4e6f36d51382 t |
| 2017 |
|
| 2018 |
test calling outgoing to multiple paths |
| 2019 |
|
| 2020 |
$ hg out -S -R tcc tc t |
| 2021 |
comparing with tc |
| 2022 |
searching for changes |
| 2023 |
no changes found |
| 2024 |
comparing with tc/s |
| 2025 |
searching for changes |
| 2026 |
no changes found |
| 2027 |
comparing with tc/s/ss |
| 2028 |
searching for changes |
| 2029 |
no changes found |
| 2030 |
comparing with tc/t |
| 2031 |
searching for changes |
| 2032 |
no changes found |
| 2033 |
comparing with t |
| 2034 |
searching for changes |
| 2035 |
no changes found |
| 2036 |
comparing with t/s |
| 2037 |
searching for changes |
| 2038 |
no changes found |
| 2039 |
comparing with t/s/ss |
| 2040 |
searching for changes |
| 2041 |
no changes found |
| 2042 |
comparing with t/t |
| 2043 |
searching for changes |
| 2044 |
no changes found |
| 2045 |
[1] |
| 2046 |
|
| 2047 |
test calling outgoing to multiple paths using multi-urls |
| 2048 |
|
| 2049 |
$ cat >> tcc/.hg/hgrc << EOF |
| 2050 |
> [paths] |
| 2051 |
> t=$TESTTMP/t |
| 2052 |
> all=path://default path://t |
| 2053 |
> all:multi-urls=True |
| 2054 |
> EOF |
| 2055 |
$ hg out -S -R tcc all |
| 2056 |
comparing with $TESTTMP/tc |
| 2057 |
searching for changes |
| 2058 |
no changes found |
| 2059 |
comparing with $TESTTMP/tc/s |
| 2060 |
searching for changes |
| 2061 |
no changes found |
| 2062 |
comparing with $TESTTMP/tc/s/ss |
| 2063 |
searching for changes |
| 2064 |
no changes found |
| 2065 |
comparing with $TESTTMP/tc/t |
| 2066 |
searching for changes |
| 2067 |
no changes found |
| 2068 |
comparing with $TESTTMP/t |
| 2069 |
searching for changes |
| 2070 |
no changes found |
| 2071 |
comparing with $TESTTMP/t/s |
| 2072 |
searching for changes |
| 2073 |
no changes found |
| 2074 |
comparing with $TESTTMP/t/s/ss |
| 2075 |
searching for changes |
| 2076 |
no changes found |
| 2077 |
comparing with $TESTTMP/t/t |
| 2078 |
searching for changes |
| 2079 |
no changes found |
| 2080 |
[1] |