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.
# quickop.py - TortoiseHg's dialog for quick dirstate operations## Copyright 2009 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.importosfrommercurialimporthg,ui,cmdutil,utilfromPyQt4importQtCore,QtGuifromtortoisehg.util.i18nimport_fromtortoisehg.utilimporthglib,shlib,pathsfromtortoisehg.hgqtimportqtlib,statusLABELS={'add':(_('Select files to add'),_('Add')),'forget':(_('Select files to forget'),_('Forget')),'revert':(_('Select files to revert'),_('Revert')), 'remove': (_('Select files to remove'), _('Remove')),}
# Technical Debt
-#
-# command running functionality
-# perhaps a check for no applicable files
-# initial check of selected files+# command running functionality
+# perhaps a check for no applicable files
class QuickOpDialog(QtGui.QDialog):
""" Dialog for performing quick dirstate operations """
def__init__(self,command,pats,parent=None):QtGui.QDialog.__init__(self,parent)self.pats=pats# Handle rm aliasifcommand=='rm':command='remove' self.command = command
repo = hg.repository(ui.ui(), path=paths.find_root())
+ assert repo os.chdir(repo.root)
- assert repo self.setWindowTitle('%s - hg %s' % (hglib.get_reponame(repo), command))
layout = QtGui.QVBoxLayout()
self.setLayout(layout)lbl=QtGui.QLabel(LABELS[command][0])layout.addWidget(lbl)types={'add':'I?','forget':'MAR!C','revert':'MAR!','remove':'MAR!CI?',}filetypes=types[self.command]opts={}fors,valinstatus.statusTypes.iteritems():opts[val.name]=sinfiletypesstwidget=status.StatusWidget(pats,opts,self)layout.addWidget(stwidget,1)ifself.command=='revert':## no backup checkboxchk=QtGui.QCheckBox(_('Do not save backup files (*.orig)'))layout.addWidget(chk)BB=QtGui.QDialogButtonBoxbb=QtGui.QDialogButtonBox(BB.Ok|BB.Cancel)self.connect(bb,QtCore.SIGNAL("accepted()"),self,QtCore.SLOT("accept()"))self.connect(bb,QtCore.SIGNAL("rejected()"),self,QtCore.SLOT("reject()"))bb.button(BB.Ok).setDefault(True)bb.button(BB.Ok).setText(LABELS[command][1])layout.addWidget(bb)s=QtCore.QSettings()stwidget.restoreState(s.value('quickop/state').toByteArray())self.restoreGeometry(s.value('quickop/geom').toByteArray())self.stwidget=stwidgetdefaccept(self):s=QtCore.QSettings()s.setValue('quickop/state',self.stwidget.saveState())s.setValue('quickop/geom',self.saveGeometry())QtGui.QDialog.accept(self)defreject(self):s=QtCore.QSettings()s.setValue('quickop/state',self.stwidget.saveState())s.setValue('quickop/geom',self.saveGeometry())QtGui.QDialog.reject(self)defrun(ui,*pats,**opts):pats=hglib.canonpaths(pats)ifopts.get('canonpats'):pats=list(pats)+opts['canonpats']returnQuickOpDialog(opts.get('alias'),pats)
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.