Changeset 413c98846035…
Parent 677251ebf5f2…
by
Changes to 2 files · Browse files at 413c98846035 Showing diff from parent 677251ebf5f2 Diff from another changeset...
@@ -224,9 +224,12 @@ self.markerAdd(i, self.removedColor)
def run(ui, *pats, **opts):
- 'for testing purposes only'
- from tortoisehg.util import paths
- from tortoisehg.hgqt import thgrepo
- repo = thgrepo.repository(ui, path=paths.find_root())
- dlg = RejectsDialog(pats[0], None)
+ if len(pats) != 1:
+ qtlib.ErrorMsgBox(_('Filename required'),
+ _('You must provide the path to a file'))
+ import sys; sys.exit()
+ path = pats[0]
+ if path.endswith('.rej'):
+ path = path[:-4]
+ dlg = RejectsDialog(path, None)
return dlg
|
@@ -557,10 +557,15 @@ return qtrun(run, ui, *pats, **opts)
def shelve(ui, *pats, **opts):
- """browse working copy status"""
+ """Move changes between working directory and patches"""
from tortoisehg.hgqt.shelve import run
return qtrun(run, ui, *pats, **opts)
+def rejects(ui, *pats, **opts):
+ """Manually resolve rejected patch chunks"""
+ from tortoisehg.hgqt.rejects import run
+ return qtrun(run, ui, *pats, **opts)
+
def tag(ui, *pats, **opts):
"""tag tool"""
from tortoisehg.hgqt.tag import run
@@ -1007,7 +1012,8 @@ ('', 'remove', None, _('remove a tag')),
('m', 'message', '', _('use <text> as commit message')),],
_('thg tag [-f] [-l] [-m TEXT] [-r REV] [NAME]')),
- "shelve": (shelve, [], _('thg shelve')),
+ "shelve|unshelve": (shelve, [], _('thg shelve')),
+ "rejects": (rejects, [], _('thg rejects [FILE]')),
"test": (test, [], _('thg test')),
"help": (help_, [], _('thg help [COMMAND]')),
"^purge": (purge, [], _('thg purge')),
|
Loading...