/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to push.py

  • Committer: Curtis Hovey
  • Date: 2012-03-11 17:06:34 UTC
  • mto: This revision was merged to the branch mainline in revision 788.
  • Revision ID: sinzui.is@verizon.net-20120311170634-c63bxfynru145qn4
Replace do_push with a method based on bzrlib.push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
class PushDialog(Gtk.Dialog):
40
40
    """New implementation of the Push dialog."""
41
41
 
42
 
    def __init__(self, repository=None, revid=None, branch=None, parent=None):
 
42
    def __init__(self, repository, revid, branch=None, parent=None):
43
43
        """Initialize the Push dialog. """
44
44
        super(PushDialog, self).__init__(
45
45
            title="Push", parent=parent, flags=0, border_width=6,
46
46
            buttons=(Gtk.STOCK_CLOSE, Gtk.ResponseType.CLOSE))
47
 
        if repository is None:
48
 
            repository = branch.repository
49
47
        self.branch = branch
50
48
 
51
49
        # Unused arguments
52
50
        self.repository = repository
53
 
        if revid is None:
54
 
            revid = branch.last_revision()
55
51
        self.revid = revid
56
52
 
57
53
        # Create the widgets