changeset 1498:cf82df69b794

Merge default heads. Cleaned up some comments in wrappers as a result of duplicate work. Sigh.
author Augie Fackler <raf@durin42.com>
date Sun, 12 Feb 2017 16:35:08 -0500
parents 0991df151799 (diff) e0eda6f2c2f2 (current diff)
children 60690af283e5
files hgsubversion/wrappers.py
diffstat 4 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.hgsigs
+++ b/.hgsigs
@@ -1,3 +1,4 @@
 41ff2014d125cfe6eda39a79dc1c7ca9c99bf785 0 iQIcBAABAgAGBQJTY6GOAAoJELnJ3IJKpb3VrTcP/iIvysZP7BMyBW6QfAZMl9vRz06BlOgGIapNFcI2E12yC6j8oADymz2QZCtj21YyyuxIeuPLya5LQ1OoGHsZk/iW700UxUdrUzW3QbKiTfKrNXN915aRE1rYznzetgQc+xqGV4Hk7P5GarAfBcZtCVtc7/Gmo9AMkU1QbLzhwDGMLLUDt1Gsu9Vn3JugVN6O10NqxxGvU18ahVMsy+qyaJBZ5fJUKnBAmwHa3DCP5DRfDNKUaAl7xOK09gvRi6h6dPl8HPrx6tN3wkQ0QRB6kD06yrJejnQ7eM/1fxLNovZ0MZe2+bHMeXWnzGseQsrlvZSi3GWch4xSW+Tqa/pRo0qbbQ8Tq3Hj7J2Ip482nEwzEZZiWcw/1vAIraYkinGuTcw0Kq+IsKh8zBRN5jiyq3NNQYXraC93KL9/raVbssPG6KAP7LBiN0cYM51T3lL1ER1/oMJJfdX4OWn6dCRptlqfwhW9hxK/R+dbm2lOcT6EENtYp4nq5amqym0i4zx/bAJmw4mpNMEmZdAIBCgjxxb01ez1IQFzvg+/+DIr62n+YGlhsYVJTDRVAdwaLXQKnSo7gIowpsWU9WRejxaISuVr6aQbuMtbtZIjqUFSIC6UR1d9GQdkiXWv+tCP29UHqTV+81BaFAyTe6s4zc5IhEZudwdN6f1bBtYD3BN3vX9M
 5cdc58c1c9a7ed24a7e206150032a9443a59c569 0 iQIcBAABAgAGBQJT25kVAAoJELnJ3IJKpb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u6ceALuwKZSRMdJ2FCVwAEdaHAJG
--- a/.hgtags
+++ b/.hgtags
@@ -21,3 +21,4 @@ 759cafce6becef077fb1a152b554a05ff66b04cd
 89997a5fc18163c5f65b83272b4521cdbf29984e 1.8.4
 bd979667611d9df733c61251e7668899f3e77a8f 1.8.5
 49d324e11856f5d65bd7f83f7ffb3a2f07bf82c1 1.8.6
+051a517b473b7bbb7f2176ed38a34fcee96fceee 1.8.7
--- a/hgsubversion/wrappers.py
+++ b/hgsubversion/wrappers.py
@@ -1,3 +1,6 @@
+import inspect
+import os
+
 from hgext import rebase as hgrebase
 
 from mercurial import cmdutil
@@ -20,7 +23,6 @@ from mercurial import scmutil
 
 import inspect
 import layouts
-import os
 import replay
 import pushmod
 import stupid as stupidmod
@@ -134,14 +136,13 @@ def findcommonoutgoing(repo, other, only
     common, heads = util.outgoing_common_and_heads(repo, hashes, parent)
     outobj = getattr(discovery, 'outgoing', None)
     if outobj is not None:
-        # Mercurial 2.1 and later
         argspec = inspect.getargspec(outobj.__init__)
         if 'repo' in argspec[0]:
             # Starting from Mercurial 3.9.1 outgoing.__init__ accepts
             # `repo` object instead of a `changelog`
             return outobj(repo, common, heads)
-        else:
-            return outobj(repo.changelog, common, heads)
+        # Mercurial 2.1 through 3.9
+        return outobj(repo.changelog, common, heads)
     # Mercurial 2.0 and earlier
     return common, heads
 
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -293,6 +293,7 @@ def testui(stupid=False, layout='auto', 
     u = ui.ui()
     bools = {True: 'true', False: 'false'}
     u.setconfig('ui', 'quiet', bools[True])
+    u.setconfig('ui', 'username', 'automated tests')
     u.setconfig('extensions', 'hgsubversion', '')
     u.setconfig('hgsubversion', 'stupid', bools[stupid])
     u.setconfig('hgsubversion', 'layout', layout)