diff src/topic/__init__.py @ 1871:58ef5699fb35

merge: use topic to pick default destination If the topic have multiple heads, reduce that. Otherwise, pick the branch we are on.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 21 Oct 2015 01:09:15 +0200
parents c9cacc62fa17
children 4fcee38d71d6
line wrap: on
line diff
--- a/src/topic/__init__.py	Wed Oct 21 01:12:32 2015 +0200
+++ b/src/topic/__init__.py	Wed Oct 21 01:09:15 2015 +0200
@@ -28,6 +28,7 @@
 
 from . import constants
 from . import revset as topicrevset
+from . import destination
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
@@ -47,6 +48,9 @@
         return [t]
     return []
 
+def uisetup(ui):
+    destination.setupdest()
+
 def reposetup(ui, repo):
     orig = repo.__class__
     class topicrepo(repo.__class__):