/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 21:41:49 UTC
  • mfrom: (785 trunk)
  • mto: This revision was merged to the branch mainline in revision 788.
  • Revision ID: sinzui.is@verizon.net-20120311214149-5r8750zihn80nk2r
Merged trunk.

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, revid, branch=None, parent=None):
 
42
    def __init__(self, repository=None, revid=None, 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
47
49
        self.branch = branch
48
50
 
49
51
        # Unused arguments
50
52
        self.repository = repository
 
53
        if revid is None:
 
54
            revid = branch.last_revision()
51
55
        self.revid = revid
52
56
 
53
57
        # Create the widgets