예제 #1
0
파일: main.py 프로젝트: 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)
예제 #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)
예제 #3
0
파일: main.py 프로젝트: jaiqc/git-cola
 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)
예제 #4
0
파일: main.py 프로젝트: kewelinho/git-cola
 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)
예제 #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)
예제 #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)