Mercurial > hg > mercurial-crew-with-dirclash
annotate tests/test-nested-repo.out @ 5478:bff41174563f
Only set mode of new patch if the target file was removed before.
If the file is writable by the user, but owned by a different user, the
chmod will otherwise fail with "Operation not permitted".
Additionally make very sure that the file is only written if either the number
of links is <= 1 or the file was successfully removed.
Maybe this minimal COW code should be replaced by something from util.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Thu, 25 Oct 2007 19:40:56 +0200 |
parents | c7e8fe11f34a |
children |
rev | line source |
---|---|
2061
5987c1eac2ce
support nested repositories.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
1 # should print nothing |
5141
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2139
diff
changeset
|
2 # should fail |
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2139
diff
changeset
|
3 abort: path 'b/x' is inside repo 'b' |
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2139
diff
changeset
|
4 abort: path 'b/x' is inside repo 'b' |
5200
c7e8fe11f34a
path_auditor: cache names of audited directories
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5141
diff
changeset
|
5 # should fail |
c7e8fe11f34a
path_auditor: cache names of audited directories
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5141
diff
changeset
|
6 abort: path 'b/x' is inside repo 'b' |
5141
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2139
diff
changeset
|
7 # should arguably print nothing |
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2139
diff
changeset
|
8 # should fail |
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2139
diff
changeset
|
9 abort: path 'b/a' is inside repo 'b' |