# HG changeset patch # User Danek Duvall # Date 1430931959 25200 # Node ID 078df530ebdb1a7faafc767964aec3933e941518 # Parent a41cef0f4f68c58b8e05e881c16b805168c17e3d 21029166 mercurial 3.4 diff -r a41cef0f4f68 -r 078df530ebdb components/mercurial/Makefile --- a/components/mercurial/Makefile Thu May 07 13:00:49 2015 -0700 +++ b/components/mercurial/Makefile Wed May 06 10:05:59 2015 -0700 @@ -28,7 +28,7 @@ PATH=/usr/bin:/usr/gnu/bin:/usr/sbin COMPONENT_NAME= mercurial -COMPONENT_VERSION= 3.2.3 +COMPONENT_VERSION= 3.4 COMPONENT_PROJECT_URL= http://mercurial.selenic.com/ COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz @@ -38,7 +38,7 @@ COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc COMPONENT_BUGDB= utility/hg -TPNO= 21341 +TPNO= 22534 # Mercurial does not yet support Python 3. PYTHON_VERSIONS = 2.7 2.6 diff -r a41cef0f4f68 -r 078df530ebdb components/mercurial/mercurial-GENFRAG.p5m --- a/components/mercurial/mercurial-GENFRAG.p5m Thu May 07 13:00:49 2015 -0700 +++ b/components/mercurial/mercurial-GENFRAG.p5m Wed May 06 10:05:59 2015 -0700 @@ -20,7 +20,7 @@ # # -# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. # default mangler.man.stability committed> @@ -46,11 +46,9 @@ file path=usr/demo/mercurial/hgsh/hgsh.c file path=usr/demo/mercurial/hgweb.fcgi mode=555 file path=usr/demo/mercurial/hgweb.wsgi -file path=usr/demo/mercurial/lock-checker.py file path=usr/demo/mercurial/logo-droplets.svg file path=usr/demo/mercurial/memory.py file path=usr/demo/mercurial/mercurial.el -file path=usr/demo/mercurial/mergetools.hgrc file path=usr/demo/mercurial/mq.el file path=usr/demo/mercurial/perf.py file path=usr/demo/mercurial/pylintrc diff -r a41cef0f4f68 -r 078df530ebdb components/mercurial/mercurial-PYVER.p5m --- a/components/mercurial/mercurial-PYVER.p5m Thu May 07 13:00:49 2015 -0700 +++ b/components/mercurial/mercurial-PYVER.p5m Wed May 06 10:05:59 2015 -0700 @@ -45,6 +45,7 @@ file path=usr/lib/python$(PYVER)/vendor-packages/hgext/acl.py file path=usr/lib/python$(PYVER)/vendor-packages/hgext/blackbox.py file path=usr/lib/python$(PYVER)/vendor-packages/hgext/bugzilla.py +file path=usr/lib/python$(PYVER)/vendor-packages/hgext/censor.py file path=usr/lib/python$(PYVER)/vendor-packages/hgext/children.py file path=usr/lib/python$(PYVER)/vendor-packages/hgext/churn.py file path=usr/lib/python$(PYVER)/vendor-packages/hgext/color.py @@ -124,8 +125,10 @@ file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/config.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/context.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/copies.py +file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/crecord.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/dagparser.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/dagutil.py +file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/default.d/mergetools.rc file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/demandimport.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/diffhelpers.so file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/dirstate.py @@ -208,6 +211,7 @@ file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/merge.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/minirst.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/mpatch.so +file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/namespaces.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/node.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/obsolete.py file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/osutil.so @@ -282,6 +286,8 @@ file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/templates/gitweb/shortlog.tmpl file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/templates/gitweb/summary.tmpl file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/templates/gitweb/tags.tmpl +file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/templates/json/changelist.tmpl +file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/templates/json/map file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/templates/map-cmdline.bisect file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/templates/map-cmdline.changelog file path=usr/lib/python$(PYVER)/vendor-packages/mercurial/templates/map-cmdline.compact diff -r a41cef0f4f68 -r 078df530ebdb components/mercurial/patches/hgk.patch --- a/components/mercurial/patches/hgk.patch Thu May 07 13:00:49 2015 -0700 +++ b/components/mercurial/patches/hgk.patch Wed May 06 10:05:59 2015 -0700 @@ -1,13 +1,15 @@ -# 6542518 hg view does not work +Make the hgk extension find the GUI bits as installed on Solaris without +making the user do any extra configuration. Because this is patch is +specific to Solaris, it's not appropriate for sending upstream, and because +it's so simple, it's effectively a zero maintenance burden. ---- mercurial-2.2.1/hgext/hgk.py Thu May 3 14:06:28 2012 -+++ mercurial-2.2.1/hgext/hgk.py Sat May 12 17:31:15 2012 -@@ -307,7 +307,7 @@ - "start interactive history viewer" - os.chdir(repo.root) - optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v]) +--- mercurial-3.4/hgext/hgk.py.orig Fri May 1 14:48:50 2015 ++++ mercurial-3.4/hgext/hgk.py Mon May 4 14:43:19 2015 +@@ -326,6 +326,6 @@ + if repo.filtername is None: + optstr += '--hidden' + - cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc)) + cmd = ui.config("hgk", "path", "/usr/demo/mercurial/hgk") + " %s %s" % (optstr, " ".join(etc)) ui.debug("running %s\n" % cmd) - util.system(cmd) - + ui.system(cmd) diff -r a41cef0f4f68 -r 078df530ebdb components/mercurial/patches/issue4646.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/mercurial/patches/issue4646.patch Wed May 06 10:05:59 2015 -0700 @@ -0,0 +1,45 @@ +# HG changeset patch +# User Gregory Szorc +# Date 1430931130 25200 +# Wed May 06 09:52:10 2015 -0700 +# Branch stable +# Node ID 44b054c3a46eac63d5fed06ffb8fffc38d5668f6 +# Parent 41cd8171e58f991373dcd0b4897dc1e5978d42dd +extensions: clear aftercallbacks after execution (issue4646) + +It was reported that enabling pager without color could cause a hang. +Inserting print statements revealed that the callbacks in +extensions._aftercallbacks were being invoked twice. + +extensions.loadall can be called multiple times. If entries in +extensions._aftercallbacks linger between calls, this could result +in double execution of the callbacks. This can lead to unwanted +behavior. + +The reproduce steps in the bug seem to only occur when the output of +a command is less than the size of the current screen. This is not +something that can easily be tested. I verified the test case works +with this patch and that pager and color interaction continues to +work. Since we have no existing automated tests for pager, this sadly +appears to be the best testing I can do. + +diff --git a/mercurial/extensions.py b/mercurial/extensions.py +--- a/mercurial/extensions.py ++++ b/mercurial/extensions.py +@@ -133,8 +133,12 @@ def loadall(ui): + + for fn in _aftercallbacks[shortname]: + fn(loaded=False) + ++ # loadall() is called multiple times and lingering _aftercallbacks ++ # entries could result in double execution. See issue4646. ++ _aftercallbacks.clear() ++ + def afterloaded(extension, callback): + '''Run the specified function after a named extension is loaded. + + If the named extension is already loaded, the callback will be called +_______________________________________________ +Mercurial-devel mailing list +Mercurial-devel@selenic.com +http://selenic.com/mailman/listinfo/mercurial-devel diff -r a41cef0f4f68 -r 078df530ebdb components/mercurial/patches/manpages.patch --- a/components/mercurial/patches/manpages.patch Thu May 07 13:00:49 2015 -0700 +++ b/components/mercurial/patches/manpages.patch Wed May 06 10:05:59 2015 -0700 @@ -1,5 +1,5 @@ ---- mercurial-3.2.3/doc/hg.1.orig Thu Dec 18 12:59:32 2014 -+++ mercurial-3.2.3/doc/hg.1 Thu Dec 18 18:23:28 2014 +--- mercurial-3.4/doc/hg.1.orig Fri May 1 14:49:19 2015 ++++ mercurial-3.4/doc/hg.1 Mon May 4 14:57:31 2015 @@ -3,33 +3,6 @@ .TH HG 1 "" "" "Mercurial Manual" .SH NAME @@ -174,7 +174,7 @@ .TP .BI \-s, \-\-similarity \ . -@@ -234,7 +207,7 @@ +@@ -238,7 +211,7 @@ .B \-n, \-\-dry\-run . do not perform actions, just print output @@ -183,7 +183,7 @@ .sp [+] marked option can be specified multiple times .SS annotate -@@ -242,9 +215,9 @@ +@@ -246,9 +219,9 @@ show changeset information by line for each file: .sp .nf @@ -195,7 +195,7 @@ .fi .sp List changes in files, showing the revision id responsible for -@@ -261,7 +234,7 @@ +@@ -265,7 +238,7 @@ Returns 0 on success. .sp Options: @@ -204,7 +204,7 @@ .TP .BI \-r, \-\-rev \ . -@@ -273,7 +246,7 @@ +@@ -277,7 +250,7 @@ .TP .B \-\-no\-follow . @@ -213,7 +213,7 @@ .TP .B \-a, \-\-text . -@@ -326,23 +299,23 @@ +@@ -330,23 +303,23 @@ .BI \-T, \-\-template \