On Mon, Jul 4, 2011 at 4:22 PM, Simon Heimberg <[email protected]> wrote:
> # HG changeset patch
> # User Simon Heimberg <[email protected]>
> # Date 1309810993 -7200
> # Node ID 18130852e3ad04bc66a5fe04297ec5089913f350
> # Parent f3bcbc16d042c790ef285bc8ea0257199a5b3da3
> clone: add a check box for creating a shared repository
>
> doing invalid selection is not prevented (example: hg share --uncompressed)
Looks reasonable, except that we have a policy with the Qt port to not
expose options for extensions unless those extensions are already
enabled.
> diff -r f3bcbc16d042 -r 18130852e3ad tortoisehg/hgtk/clone.py
> --- a/tortoisehg/hgtk/clone.py Mon Jul 04 20:50:23 2011 +0200
> +++ b/tortoisehg/hgtk/clone.py Mon Jul 04 22:23:13 2011 +0200
> @@ -141,9 +141,11 @@
> 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'))
> + self.optshare = gtk.CheckButton(_('create shared repository'))
> table.add_row(self.optupdate)
> table.add_row(self.optpull)
> table.add_row(self.optuncomp)
> + table.add_row(self.optshare)
>
> ## proxy options
> self.optproxy = gtk.CheckButton(_('Use proxy server'))
> @@ -310,7 +312,11 @@
> dest = os.path.join(os.path.dirname(dirabs), dest)
>
> # prepare command line
> - cmdline = ['hg', 'clone']
> + cmdline = ['hg']
> + if self.optshare.get_active():
> + cmdline.extend(['--config', 'extensions.share=', 'share'])
> + else:
> + cmdline.append('clone')
> if self.optupdate.get_active():
> cmdline.append('--noupdate')
> if self.optuncomp.get_active():
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop
>
--
Steve Borho
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop