??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
σ ΰUdac@`s±ddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z dd l m Z dd l m Z d efd„ƒYZd„Zedkr­eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bys¦ --- module: hg short_description: Manages Mercurial (hg) repositories description: - Manages Mercurial (hg) repositories. Supports SSH, HTTP/S and local address. version_added: "1.0" author: "Yeukhon Wong (@yeukhon)" options: repo: description: - The repository address. required: yes aliases: [ name ] dest: description: - Absolute path of where the repository should be cloned to. This parameter is required, unless clone and update are set to no required: yes revision: description: - Equivalent C(-r) option in hg command which could be the changeset, revision number, branch name or even tag. aliases: [ version ] force: description: - Discards uncommitted changes. Runs C(hg update -C). Prior to 1.9, the default was `yes`. type: bool default: 'no' purge: description: - Deletes untracked files. Runs C(hg purge). type: bool default: 'no' update: description: - If C(no), do not retrieve new revisions from the origin repository type: bool default: 'yes' version_added: '2.0' clone: description: - If C(no), do not clone the repository if it does not exist locally. type: bool default: 'yes' version_added: '2.3' executable: description: - Path to hg executable to use. If not supplied, the normal mechanism for resolving binary paths will be used. version_added: '1.4' notes: - This module does not support push capability. See U(https://github.com/ansible/ansible/issues/31156). - "If the task seems to be hanging, first verify remote host is in C(known_hosts). SSH will prompt user to authorize the first contact with a remote host. To avoid this prompt, one solution is to add the remote host public key in C(/etc/ssh/ssh_known_hosts) before calling the hg module, with the following command: ssh-keyscan remote_host.com >> /etc/ssh/ssh_known_hosts." - As per 01 Dec 2018, Bitbucket has dropped support for TLSv1 and TLSv1.1 connections. As such, if the underlying system still uses a Python version below 2.7.9, you will have issues checking out bitbucket repositories. See U(https://bitbucket.org/blog/deprecating-tlsv1-tlsv1-1-2018-12-01). s - name: Ensure the current working copy is inside the stable branch and deletes untracked files if any. hg: repo: https://bitbucket.org/user/repo1 dest: /home/user/repo1 revision: stable purge: yes - name: Get information about the repository whether or not it has already been cloned locally. hg: repo: git://bitbucket.org/user/repo dest: /srv/checkout clone: no update: no N(t AnsibleModule(t to_nativetHgcB`sƒeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z ed „ƒZRS( cC`s1||_||_||_||_||_dS(N(tmoduletdesttrepotrevisionthg_path(tselfR R R RR((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyt__init__es     cC`s2|jj|jg|ƒ\}}}|||fS(N(R t run_commandR(Rt args_listtrctoutterr((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyt_commandls%cC`s(dddd|jdg}|j|ƒS(Ntpurges--configsextensions.purge=s-Rs--print(R R(Rtargs((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyt_list_untrackedpscC`sf|jddddd|jgƒ\}}}|dkrO|jjd|ƒnt|ƒjdƒSd S( s[ hg id -b -i -t returns a string in the format: "[+] " This format lists the state of the current working copy, and indicates whether there are uncommitted changes by the plus sign. Otherwise, the sign is omitted. Read the full description via hg id --help tids-bs-is-ts-Ritmsgs N(RR R t fail_jsonR tstrip(RRRR((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyt get_revisionts - cC`sZ|jd|jgƒ\}}}|dkrC|jjd|ƒnt|ƒjdƒSdS(NRiRs (RR R RR R(RRRR((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pytget_remote_revision„s! cC`s$|jƒ}d|krtStSdS(Nt+(RtTruetFalse(Rtnow((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pythas_local_mods‹s  cC`s’|jƒ}|stSddd|jddg}|j|ƒ\}}}|dkrk|jjd|ƒn|jƒ}||krŽ| rŽtSdS(Ntupdates-Cs-Rs-rt.iR(R%R#R RR RR"(RtbeforeRRRRtafter((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pytdiscard’s   cC`s‘|jƒ\}}}|dkr7|jjd|ƒn|dkr™dddd|jg}|j|ƒ\}}}|dkr•|jjd|ƒntStSdS(NiRtRs--configsextensions.purge=s-R(RR RR RR"R#(Rtrc1tout1terr1Rtrc2tout2terr2((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyR s   cC`sNt}t}|r!|jƒ}n|r6|jƒ}n|sB|rFtStSdS(N(R#R*RR"(RtforceRt discardedtpurged((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pytcleanup°s cC`s|jdd|j|jgƒS(Ntpulls-R(RR R (R((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyR6½scC`sJ|jdk r1|jdd|jd|jgƒS|jdd|jgƒS(NR&s-rs-R(RtNoneRR (R((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyR&Αs"cC`sP|jdk r4|jd|j|jd|jgƒS|jd|j|jgƒS(Ntclones-r(RR7RR R (R((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyR8Ζs%cC`sŽ|jdks$t|jƒdkr(tS|jdddd|jgƒ\}}}|dkrt|jjd|ƒn|j|jƒrŠt StS( sš There is no point in pulling from a potentially down/slow remote site if the desired changeset is already the current changeset. is--debugRs-is-RiRN( RR7tlenR#RR R Rt startswithR"(RRRR((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyt at_revisionΛs$* (t__name__t __module__RRRRR R%R*RR5R6R&R8tpropertyR;(((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyR ds           cC`s[tdtdtdddtddgƒdtdd ƒd tddd ddd gƒd tddd tƒdtddd tƒdtddd tƒdtddd tƒdtddd dƒƒƒ}|jd}|jd}|jd }|jd }|jd}|jd}|jd}|jdp=|jdtƒ}|dk rdtjj |dƒ} nd} t} t} | rœ|s‰|rœ|j ddƒnt |||||ƒ} | rη| rη| j ƒ}|j d|dtƒntjj| ƒsI|r6| jƒ\}}}|dkrF|j d|ƒqFq|j dtƒnΕ|s^| jƒ} n°| jrˆ| jƒ} | j||ƒ} n†| jƒ} | j||ƒ} | jƒ\}}}|dkrΪ|j d|ƒn| jƒ\}}}|dkr|j d|ƒn| jƒ}| |ks,| r5t} n|j d| d|d| d| ƒdS(Nt argument_specR ttypetstrtrequiredtaliasestnameR tpathRtdefaulttversionR2tboolRR&R8t executablethgs.hg/hgrcR+RsIthe destination directory must be specified unless clone=no and update=noR)tchangediR(tcleaned(RtdictR"R7R#tparamst get_bin_pathtosREtjoinRR R t exit_jsontexistsR8RR;R5R6R&(R R R RR2RR&R8RthgrcR(RKRLRJRRRR)((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pytmainήsh                 t__main__(t __future__RRRR@t __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESRPtansible.module_utils.basicRtansible.module_utils._textR tobjectR RUR<(((sE/usr/lib/python2.7/site-packages/ansible/modules/source_control/hg.pyts   ? z M