# HG changeset patch
# User Simon Heimberg <[email protected]>
# Date 1310590931 -7200
# Node ID 2d7f05998a8e12ea274ce26cad873a5452d490d4
# Parent 76c38cd482bcdab9876ffb4d19cdffcbe6945bd5
clone: add a check box for creating a shared repository
doing invalid selection is not prevented (example: hg share --uncompressed)
diff -r 76c38cd482bc -r 2d7f05998a8e tortoisehg/hgtk/clone.py
--- a/tortoisehg/hgtk/clone.py Mit Jul 13 22:42:06 2011 +0200
+++ b/tortoisehg/hgtk/clone.py Mit Jul 13 23:02:11 2011 +0200
@@ -141,9 +141,15 @@
self.optupdate = gtk.CheckButton(_('Do not update the new working
directory'))
self.optpull = gtk.CheckButton(_('Use pull protocol to copy metadata'))
self.optuncomp = gtk.CheckButton(_('Use uncompressed transfer'))
+ if hglib.extension_enabled(self.ui, 'share')
+ self.optshare = gtk.CheckButton(_('create shared repository'))
+ else
+ self.optshare = None
table.add_row(self.optupdate)
table.add_row(self.optpull)
table.add_row(self.optuncomp)
+ if self.optshare:
+ table.add_row(self.optshare)
## proxy options
self.optproxy = gtk.CheckButton(_('Use proxy server'))
@@ -310,10 +316,16 @@
dest = os.path.join(os.path.dirname(dirabs), dest)
# prepare command line
- cmdline = ['hg', 'clone']
+ cmdline = ['hg']
+ share = False
+ if self.optshare and self.optshare.get_active():
+ cmdline.extend(['share'])
+ share = True
+ else:
+ cmdline.append('clone')
if self.optupdate.get_active():
cmdline.append('--noupdate')
- if self.optuncomp.get_active():
+ if self.optuncomp.get_active() ## and not share ??:
cmdline.append('--uncompressed')
if self.optpull.get_active():
cmdline.append('--pull')
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop