# HG changeset patch
# User Simon Heimberg <sim...@besonet.ch>
# Date 1309805423 -7200
# Node ID f3bcbc16d042c790ef285bc8ea0257199a5b3da3
# Parent  acf33fe368410cbfd8e2538e06deee7afbff657c
clone: add a check box for creating a shared repository

doing invalid selection is not prevented (example: hg share --uncompressed)

diff -r acf33fe36841 -r f3bcbc16d042 tortoisehg/hgqt/clone.py
--- a/tortoisehg/hgqt/clone.py  Son Jul 03 17:16:08 2011 -0500
+++ b/tortoisehg/hgqt/clone.py  Mon Jul 04 20:50:23 2011 +0200
@@ -130,9 +130,11 @@
         self.noupdate_chk = QCheckBox(_('Do not update the new working 
directory'))
         self.pproto_chk = QCheckBox(_('Use pull protocol to copy metadata'))
         self.uncomp_chk = QCheckBox(_('Use uncompressed transfer'))
+        self.share_chk = QCheckBox(_('create shared repository'))
         optbox.addWidget(self.noupdate_chk)
         optbox.addWidget(self.pproto_chk)
         optbox.addWidget(self.uncomp_chk)
+        optbox.addWidget(self.share_chk)
 
         self.qclone_chk, self.qclone_txt, self.qclone_btn = \
                 chktext(_('Include patch queue'), btnlabel=_('Browse...'),
@@ -248,6 +250,7 @@
         self.qclone_chk.setVisible(visible)
         self.qclone_txt.setVisible(visible)
         self.qclone_btn.setVisible(visible)
+        self.share_chk.setVisible(visible)
         self.remote_chk.setVisible(visible)
         self.remote_text.setVisible(visible)
         self.startrev_chk.setVisible(visible and self.startrev_available())
@@ -265,6 +268,8 @@
             cmdline = ['qclone']
             if not qclonedir in ['.hg\patches', '.hg/patches', '']:
                 cmdline += ['--patches', qclonedir]
+        else if self.share_chk.isChecked():
+            cmdline = ['--config', 'extensions.share=', 'share']
         else:
             cmdline = ['clone']
         if self.noupdate_chk.isChecked():

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to