Example #1
0
File: main.py Project: pwr/git-cola
 def rebase_start(self):
     branch = guicmds.choose_ref(N_("Select New Upstream"), N_("Interactive Rebase"))
     if not branch:
         return None
     self.model.is_rebasing = True
     self._update_callback()
     cmds.do(cmds.Rebase, branch)
Example #2
0
 def rebase_start(self):
     branch = guicmds.choose_ref(N_('Select New Upstream'),
                                 N_('Interactive Rebase'))
     if not branch:
         return None
     self.model.is_rebasing = True
     self._update_callback()
     cmds.do(cmds.Rebase, branch)
Example #3
0
 def rebase_start(self):
     cfg = gitcfg.current()
     if not cfg.get("rebase.autostash", False):
         if self.model.staged or self.model.unmerged or self.model.modified:
             Interaction.information(N_("Unable to rebase"), N_("You cannot rebase with uncommitted changes."))
             return
     upstream = guicmds.choose_ref(N_("Select New Upstream"), N_("Interactive Rebase"), default="@{upstream}")
     if not upstream:
         return
     self.model.is_rebasing = True
     self._update_callback()
     cmds.do(cmds.Rebase, upstream=upstream)
Example #4
0
 def rebase_start(self):
     if self.model.staged or self.model.unmerged or self.model.modified:
         Interaction.information(
                 N_('Unable to rebase'),
                 N_('You cannot rebase with uncommitted changes.'))
         return
     branch = guicmds.choose_ref(N_('Select New Upstream'),
                                 N_('Interactive Rebase'))
     if not branch:
         return None
     self.model.is_rebasing = True
     self._update_callback()
     cmds.do(cmds.Rebase, branch)
Example #5
0
 def rebase_start(self):
     if self.model.staged or self.model.unmerged or self.model.modified:
         Interaction.information(
                 N_('Unable to rebase'),
                 N_('You cannot rebase with uncommitted changes.'))
         return
     branch = guicmds.choose_ref(N_('Select New Upstream'),
                                 N_('Interactive Rebase'))
     if not branch:
         return None
     self.model.is_rebasing = True
     self._update_callback()
     cmds.do(cmds.Rebase, branch)
Example #6
0
 def rebase_start(self):
     cfg = gitcfg.current()
     if not cfg.get('rebase.autostash', False):
         if self.model.staged or self.model.unmerged or self.model.modified:
             Interaction.information(
                 N_('Unable to rebase'),
                 N_('You cannot rebase with uncommitted changes.'))
             return
     upstream = guicmds.choose_ref(N_('Select New Upstream'),
                                   N_('Interactive Rebase'),
                                   default='@{upstream}')
     if not upstream:
         return
     self.model.is_rebasing = True
     self._update_callback()
     cmds.do(cmds.Rebase, upstream=upstream)