contrib/docker/debian.template
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 07 May 2018 14:32:55 -0700
changeset 37911 0a79fb64118e
parent 34424 1baa077214ae
permissions -rw-r--r--
revset: use resolvehexnodeidprefix() in id() predicate (BC) We now have a public method for this purpose, so we don't need to access the private revlog._partialmatch(). Also, I'll probably make some changes to resolvehexnodeidprefix() later, and I want those to be reflected by the id() predicate. Note that this breaks a test case, because we now resolve the prefix in the unfiltered repo and get an ambiguous lookup, which results in no revision being added to the revset. The test case was already documented to be broken even though it wasn't. It's important to note that {shortest(node)} already uses the unfiltered repo, so we're not going to break people who get the prefix from there. I think we may not want to ever use shortest() in the filtered repo. It seems unlikely to be enough of a win to matter much. For example, in my hg repo, it would save me only 0.2 hex digits. In another repo that only I modify, it saves a little more, but it's still only 0.29 hex digits. It seems unlikely that people will prune enough commits that only 1/16 of the commits are visible (which is what it would take a to save a single hex digit). Instead, I'm working on another approach: allow ambiguous matches to be disambiguated within a user-specified revset. Whether or not that pans out, I hope we're okay with this little change in behavior for now and we can decide what to do about it later. Differential Revision: https://phab.mercurial-scm.org/D3311
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32150
5c1283713293 make: templatize Debian build target a la e63dfbbdbd07
Anton Shestakov <av6@dwimlabs.net>
parents: 32148
diff changeset
     1
FROM debian:__CODENAME__
24973
4c4d0012db4f dockerdeb: rules to build a debian package using docker
Augie Fackler <augie@google.com>
parents:
diff changeset
     2
RUN apt-get update && apt-get install -y \
4c4d0012db4f dockerdeb: rules to build a debian package using docker
Augie Fackler <augie@google.com>
parents:
diff changeset
     3
  build-essential \
4c4d0012db4f dockerdeb: rules to build a debian package using docker
Augie Fackler <augie@google.com>
parents:
diff changeset
     4
  debhelper \
34424
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32150
diff changeset
     5
  devscripts \
24973
4c4d0012db4f dockerdeb: rules to build a debian package using docker
Augie Fackler <augie@google.com>
parents:
diff changeset
     6
  dh-python \
32148
e02bae37af30 docker: install less as a build-time dependency in deb-based distros
Anton Shestakov <av6@dwimlabs.net>
parents: 24973
diff changeset
     7
  less \
24973
4c4d0012db4f dockerdeb: rules to build a debian package using docker
Augie Fackler <augie@google.com>
parents:
diff changeset
     8
  python \
4c4d0012db4f dockerdeb: rules to build a debian package using docker
Augie Fackler <augie@google.com>
parents:
diff changeset
     9
  python-all-dev \
4c4d0012db4f dockerdeb: rules to build a debian package using docker
Augie Fackler <augie@google.com>
parents:
diff changeset
    10
  python-docutils \
34424
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32150
diff changeset
    11
  unzip \
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32150
diff changeset
    12
  zip