示例#1
0
    def show_push(self, item):
        from bzrlib.plugins.gtk.push import PushDialog
        dialog = PushDialog(self.repository, self.revids[0], self.branch)
        response = dialog.run()

        if response != Gtk.ResponseType.NONE:
            dialog.destroy()
示例#2
0
 def push_cb(self, menu, controldir, path=None):
     from bzrlib.plugins.gtk.push import PushDialog
     dialog = PushDialog(branch=controldir.open_workingtree().branch)
     dialog.display()
     Gtk.main()
示例#3
0
 def run(self, location="."):
     (br, path) = branch.Branch.open_containing(location)
     open_display()
     from bzrlib.plugins.gtk.push import PushDialog
     dialog = PushDialog(br.repository, br.last_revision(), br)
     dialog.run()