Changeset 518ef4cd6ed2…
Parent f30522a116db…
by
Changes to 2 files · Browse files at 518ef4cd6ed2 Showing diff from parent f30522a116db Diff from another changeset...
@@ -309,6 +309,11 @@ from tortoisehg.hgqt.shellconf import run
qtrun(run, ui, *pats, **opts)
+def update(ui, *pats, **opts):
+ """update/checkout tool"""
+ from tortoisehg.hgqt.update import run
+ qtrun(run, ui, *pats, **opts)
+
### help management, adapted from mercurial.commands.help_()
def help_(ui, name=None, with_version=False, **opts):
"""show help for a command, extension, or list of commands
@@ -523,6 +528,11 @@
table = {
"^clone": (clone, [], _('thg clone SOURCE [DEST]')),
+ "^update|checkout|co":
+ (update,
+ [('C', 'clean', None, _('discard uncommitted changes (no backup)')),
+ ('r', 'rev', '', _('revision to update')),],
+ _('hgqt update [-C] [[-r] REV')),
}
if os.name == 'nt':
|
|
@@ -0,0 +1,16 @@ + # update.py - Update dialog for TortoiseHg
+#
+# Copyright 2007 TK Soh <teekaysoh@gmail.com>
+# Copyright 2007 Steve Borho <steve@borho.org>
+# Copyright 2010 Yuki KODAMA <endflow.net@gmail.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
+
+from tortoisehg.hgqt import cmdui
+
+def run(ui, *pats, **opts):
+ args = ['update']
+ if opts.get('rev'):
+ args += ['-r', opts.get('rev')]
+ return cmdui.Dialog(args)
|
Loading...