<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div><div>Package: mercurial-common</div></div><div><br></div><div>When installing mercurial+mercurial-common from debian, we get a /etc/mercurial/hgrc.d/mergetools.rc file. As far as I can tell, this file hasn't been in this location since cd0c51c07e5f (Sun Oct 19 03:22:23 2014 +0200, <a href="https://www.mercurial-scm.org/repo/hg/rev/cd0c51c07e5f">https://www.mercurial-scm.org/repo/hg/rev/cd0c51c07e5f</a>).</div><div><br></div><div>I package newer versions of mercurial/mercurial-common for my users, and we use `make deb` in the Mercurial repo to build these packages. Since using this newer version of the mercurial package is currently optional, what happens is that the initial installation of the machines will get the debian version of the package, producing this file, and then they install our version which doesn't delete the file, it just marks it as 'obsolete' in `dpkg --status mercurial-common`.</div><div><br></div><div>Due to the way that Mercurial loads configuration files, this file existing takes precedence over the version installed in /usr/lib/python2.7/dist-packages/mercurial/default.d/mergetools.rc, meaning that users aren't seeing any changes being made here until they reinstall their machine, get a new version from the debian package, and then install our version (losing track of the file again).</div><div><br></div><div>I propose that the debian packaging of mercurial-common not include the following two files, since they aren't part of the .deb file produced by running `make deb` in mercurial:</div><div>/etc/mercurial/hgrc</div><div>/etc/mercurial/hgrc.d/mergetools.rc</div><div><br></div><div><br></div><div>Unsure if this is helpful or not, but here's the `dpkg --status mercurial-common` output for our in-house package on my machine; we had version 4.6 in our internal debian mirror when I installed the machine, I think:</div><div><div>Package: mercurial-common</div><div>Status: install ok installed</div><div>Priority: optional</div><div>Section: vcs</div><div>Installed-Size: 12160</div><div>Maintainer: Mercurial Developers <<a href="mailto:mercurial-devel@mercurial-scm.org">mercurial-devel@mercurial-scm.org</a>></div><div>Architecture: all</div><div>Source: mercurial</div><div>Version: 4.7rc0+14.1-rodete-545a3e6650cd~trusty</div><div>Replaces: mercurial (<< 2.6.3)</div><div>Depends: python:any (>= 2.7.5-5~), python:any (<< 2.8), python</div><div>Recommends: mercurial (= 4.7rc0+14.1-rodete-545a3e6650cd~trusty), ca-certificates</div><div>Suggests: wish</div><div>Breaks: mercurial (<< 4.7rc0+14.1-rodete-545a3e6650cd~trusty)</div><div>Conffiles:</div><div> /etc/mercurial/hgrc.d/default-tools.rc 6ca18558925e294c4e385835f82dc6ef</div><div> /etc/mercurial/hgrc.d/hgkpath.rc a2c1cf5bc41fcdb8e8645a1089d708ab</div><div> /etc/mercurial/hgrc.d/cacerts.rc c54ae955e78a2bbb427aec44751017ba</div><div> /etc/mercurial/hgrc.d/mergetools.rc 74c7c4c1c7b76bd7fc3646df152f046d obsolete</div><div> /etc/mercurial/hgrc bcefdbdbe45da0913c9ae243149fd497 obsolete</div><div>Description: easy-to-use, scalable distributed version control system (common files)</div><div> Mercurial is a fast, lightweight Source Control Management system designed</div><div> for efficient handling of very large distributed projects.</div><div> .</div><div> This package contains the architecture independent components of Mercurial,</div><div> and is generally useless without the mercurial package.</div></div><div><br></div></div></div></div>
</div></div></div></div></div>