Mercurial and Git clients can push and pull from this alias URL to interact with this repository. You can change to which repository an alias points by going to the Aliases link on the project page.
# branchop.py - branch operations dialog for TortoiseHg commit tool## Copyright 2010 Steve Borho <steve@borho.org>## This software may be used and distributed according to the terms of the# GNU General Public License version 2, incorporated herein by reference.importosfromPyQt4.QtCoreimport*fromPyQt4.QtGuiimport*fromtortoisehg.hgqt.i18nimport_fromtortoisehg.utilimporthglibfromtortoisehg.hgqtimportqtlibclassBranchOpDialog(QDialog):'Dialog for manipulating wctx.branch()'def__init__(self,repo,oldbranchop,parent=None):QDialog.__init__(self,parent)self.setWindowTitle(_('%s - branch operation')%repo.displayname)self.setWindowIcon(qtlib.geticon('branch'))layout=QVBoxLayout()self.setLayout(layout)wctx=repo[None]iflen(wctx.parents())==2:lbl=QLabel('<b>'+_('Select branch of merge commit')+'</b>')layout.addWidget(lbl)branchCombo=QComboBox()# If both parents belong to the same branch, do not duplicate the# branch name in the branch select combobranchlist=[p.branch()forpinwctx.parents()]ifbranchlist[0]==branchlist[1]:branchlist=[branchlist[0]]forbinbranchlist:branchCombo.addItem(hglib.tounicode(b))layout.addWidget(branchCombo)else:text='<b>'+_('Changes take effect on next commit')+'</b>'lbl=QLabel(text)layout.addWidget(lbl)grid=QGridLayout()nochange=QRadioButton(_('No branch changes'))newbranch=QRadioButton(_('Open a new named branch'))closebranch=QRadioButton(_('Close current branch'))branchCombo=QComboBox()branchCombo.setEditable(True)wbu=hglib.tounicode(wctx.branch())fornameinrepo.namedbranches:ifname==wbu:continuebranchCombo.addItem(name)branchCombo.activated.connect(self.accept)grid.addWidget(nochange,0,0) grid.addWidget(newbranch, 1, 0)
grid.addWidget(branchCombo, 1, 1)
grid.addWidget(closebranch, 2, 0)
+ grid.setColumnStretch(0, 0)+ grid.setColumnStretch(1, 1) layout.addLayout(grid)
newbranch.toggled.connect(branchCombo.setEnabled)
branchCombo.setEnabled(False)ifoldbranchopisNone:nochange.setChecked(True)elifoldbranchop==False:closebranch.setChecked(True)else:asserttype(oldbranchop)==QStringbc=branchCombonames=[bc.itemText(i)foriinxrange(bc.count())]ifoldbranchopinnames:bc.setCurrentIndex(names.index(oldbranchop))else:bc.addItem(oldbranchop)bc.setCurrentIndex(len(names))newbranch.setChecked(True)self.closebranch=closebranchBB=QDialogButtonBoxbb=QDialogButtonBox(BB.Ok|BB.Cancel)bb.accepted.connect(self.accept)bb.rejected.connect(self.reject)bb.button(BB.Ok).setAutoDefault(True)layout.addWidget(bb)self.bb=bbself.branchCombo=branchComboQShortcut(QKeySequence('Ctrl+Return'),self,self.accept)QShortcut(QKeySequence('Ctrl+Enter'),self,self.accept)QShortcut(QKeySequence('Escape'),self,self.reject)defaccept(self):'''Branch operation is one of: None - leave wctx branch name untouched False - close current branch QString - open new named branch '''ifself.branchCombo.isEnabled():self.branchop=self.branchCombo.currentText()elifself.closebranch.isChecked():self.branchop=Falseelse:self.branchop=NoneQDialog.accept(self)
Attach a Trello Card
Add a tag
Your session has expired
You are no longer logged in. Please log in and try your request again.
Filter RSS Feed
This RSS feed URL allows you to see the contents of your current filter using any feed reader.
This link includes a special authentication token. If you share the URL with anyone else, they can see this RSS feed's activity. You can disable these tokens when needed.
Your current filter is unsaved; changing it won't affect this RSS feed.