##// END OF EJS Templates
dockerlib: allow non-unique uid and gid of $DBUILDUSER (issue4657)...
dockerlib: allow non-unique uid and gid of $DBUILDUSER (issue4657) There are make targets for building mercurial packages for various distributions using docker. One of the preparation steps before building is to create inside the docker image a user with the same uid/gid as the current user on the host system, so that the resulting files have appropriate ownership/permissions. It's possible to run `make docker-<distro>` as a user with uid or gid that is already present in a vanilla docker container of that distibution. For example, issue4657 is about failing to build fedora packages as a user with uid=999 and gid=999 because these ids are already used in fedora, and groupadd fails. useradd would fail too, if the flow ever got to it (and there was a user with such uid already). A straightforward (maybe too much) way to fix this is to allow non-unique uid and gid for the new user and group that get created inside the image. I'm not sure of the implications of this, but marmoute encouraged me to try and send this patch for stable.

File last commit:

r22046:7a9cbb31 default
r26888:271a8020 stable
Show More
test-update-issue1456.t
45 lines | 858 B | text/troff | Tads3Lexer
/ tests / test-update-issue1456.t
Matt Mackall
tests: replace exit 80 with #require
r22046 #require execbit
Mads Kiilerich
tests: use 'hghave execbit' for tests that manipulate x bit in file system
r15442
Adrian Buehlmann
combine tests
r12279 $ rm -rf a
$ hg init a
$ cd a
$ echo foo > foo
$ hg ci -qAm0
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895 $ echo toremove > toremove
$ echo todelete > todelete
$ chmod +x foo toremove todelete
$ hg ci -qAm1
Test that local removed/deleted, remote removed works with flags
$ hg rm toremove
$ rm todelete
Adrian Buehlmann
combine tests
r12279 $ hg co -q 0
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895
Adrian Buehlmann
combine tests
r12279 $ echo dirty > foo
$ hg up -c
Siddharth Agarwal
update: standardize error message for dirty update --check...
r19801 abort: uncommitted changes
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Adrian Buehlmann
combine tests
r12279 $ hg up -q
$ cat foo
dirty
$ hg st -A
M foo
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895 C todelete
C toremove
Adrian Buehlmann
combine tests
r12279
Validate update of standalone execute bit change:
$ hg up -C 0
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
Adrian Buehlmann
combine tests
r12279 $ chmod -x foo
$ hg ci -m removeexec
nothing changed
Matt Mackall
tests: add exit codes to unified tests
r12316 [1]
Adrian Buehlmann
combine tests
r12279 $ hg up -C 0
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg up
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
Adrian Buehlmann
combine tests
r12279 $ hg st
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913 $ cd ..