Quantcast

How to Use Hg (Mercurial) URI in SRC_URI Variable to Fetch Code

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to Use Hg (Mercurial) URI in SRC_URI Variable to Fetch Code

Poole, Donald R.
Hello All,

We have developed some Qt applications in our mercurial revision control system that I want to bake with bitbake, but I can't for the life of me figure out what the proper syntax for the SRC_URI variable.  Does anyone use mercurial for their version control system and/or know how to format the SRC_URI string so the hg fetcher can fetch our sources from our repo?

Donald R. Poole, Jr.
Research Engineer
Voice: 210.522.3131 | Fax: 210.522.4931
Tactical Networks & Communications (tacticalnetworks.swri.org)
Southwest Research Institute (SwRI)

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to Use Hg (Mercurial) URI in SRC_URI Variable to Fetch Code

Philip Balister
On 04/12/2012 01:50 PM, Poole, Donald R. wrote:
> Hello All,
>
> We have developed some Qt applications in our mercurial revision control system that I want to bake with bitbake, but I can't for the life of me figure out what the proper syntax for the SRC_URI variable.  Does anyone use mercurial for their version control system and/or know how to format the SRC_URI string so the hg fetcher can fetch our sources from our repo?

Here are some examples:

[balister@oebuild openembedded]$ grep hg:// -r *
classes/shr-mirrors.bbclass:hg://.*/.* http://build.shr-project.org/sources/
classes/angstrom-mirrors.bbclass:hg://.*/.*
http://www.angstrom-distribution.org/unstable/sources/
classes/base.bbclass:    if "hg://" in srcuri:
classes/own-mirrors.bbclass:hg://.*/.* ${SOURCE_MIRROR_URL}
recipes/qextserialport/qextserialport.inc:SRC_URI =
"hg://qextserialport.googlecode.com/hg;rev=${SRCREV};module=qextserialport;proto=https"
recipes/mozilla/fennec_hg.bb:SRC_URI =
"hg://hg.mozilla.org;module=mozilla-central;rev=${SRCREV} \
recipes/mozilla/fennec_hg.bb:
hg://hg.mozilla.org;module=mobile-browser;rev=${SRCREV} \
recipes/mozilla/firefox_hg.bb:SRC_URI =
"hg://hg.mozilla.org/;module=mozilla-central;rev=8c9a6d851018 \
recipes/libsvdrp/libsvdrp_hg.bb:SRC_URI =
"hg://hg.geexbox.org;module=${PN};rev=${SRCREV}"
recipes/cacao/cacao-native_hg.bb:SRC_URI =
"hg://mips.complang.tuwien.ac.at/hg/;module=cacao;rev=${SRCREV}"

Philip


>
> Donald R. Poole, Jr.
> Research Engineer
> Voice: 210.522.3131 | Fax: 210.522.4931
> Tactical Networks & Communications (tacticalnetworks.swri.org)
> Southwest Research Institute (SwRI)
>
>
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
>
>
>
> _______________________________________________
> gumstix-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gumstix-users

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to Use Hg (Mercurial) URI in SRC_URI Variable to Fetch Code

Poole, Donald R.
Thanks Philip for the references! I have another question though: I have
to authenticate to the mercurial servers in order to clone/fetch and hg
fetcher hangs as a result since the fetcher doesn't have my credentials.
Do you know how to supply credentials to the open embedded native
mercurial so that it automatically enters my credentials to clone/fetch?
I tried installing the python keyring and mercurial_keyring to the native
hg, but was unsuccessful.

Donald R. Poole, Jr.
Research Engineer
Voice: 210.522.3131 | Fax: 210.522.4931
Tactical Networks & Communications (tacticalnetworks.swri.org)
Southwest Research Institute (SwRI)




On 4/12/12 5:56 PM, "Philip Balister" <[hidden email]> wrote:

>On 04/12/2012 01:50 PM, Poole, Donald R. wrote:
>> Hello All,
>>
>> We have developed some Qt applications in our mercurial revision
>>control system that I want to bake with bitbake, but I can't for the
>>life of me figure out what the proper syntax for the SRC_URI variable.
>>Does anyone use mercurial for their version control system and/or know
>>how to format the SRC_URI string so the hg fetcher can fetch our sources
>>from our repo?
>
>Here are some examples:
>
>[balister@oebuild openembedded]$ grep hg:// -r *
>classes/shr-mirrors.bbclass:hg://.*/.*
>http://build.shr-project.org/sources/
>classes/angstrom-mirrors.bbclass:hg://.*/.*
>http://www.angstrom-distribution.org/unstable/sources/
>classes/base.bbclass:    if "hg://" in srcuri:
>classes/own-mirrors.bbclass:hg://.*/.* ${SOURCE_MIRROR_URL}
>recipes/qextserialport/qextserialport.inc:SRC_URI =
>"hg://qextserialport.googlecode.com/hg;rev=${SRCREV};module=qextserialport
>;proto=https"
>recipes/mozilla/fennec_hg.bb:SRC_URI =
>"hg://hg.mozilla.org;module=mozilla-central;rev=${SRCREV} \
>recipes/mozilla/fennec_hg.bb:
>hg://hg.mozilla.org;module=mobile-browser;rev=${SRCREV} \
>recipes/mozilla/firefox_hg.bb:SRC_URI =
>"hg://hg.mozilla.org/;module=mozilla-central;rev=8c9a6d851018 \
>recipes/libsvdrp/libsvdrp_hg.bb:SRC_URI =
>"hg://hg.geexbox.org;module=${PN};rev=${SRCREV}"
>recipes/cacao/cacao-native_hg.bb:SRC_URI =
>"hg://mips.complang.tuwien.ac.at/hg/;module=cacao;rev=${SRCREV}"
>
>Philip
>
>
>>
>> Donald R. Poole, Jr.
>> Research Engineer
>> Voice: 210.522.3131 | Fax: 210.522.4931
>> Tactical Networks & Communications (tacticalnetworks.swri.org)
>> Southwest Research Institute (SwRI)
>>
>>
>>
>>
>>
>>-------------------------------------------------------------------------
>>-----
>> For Developers, A Lot Can Happen In A Second.
>> Boundary is the first to Know...and Tell You.
>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>> http://p.sf.net/sfu/Boundary-d2dvs2
>>
>>
>>
>> _______________________________________________
>> gumstix-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to Use Hg (Mercurial) URI in SRC_URI Variable to Fetch Code

Donny3000
Looks like I was able to work around the authentication problem by overriding the do_fetch() method, which allow the recipe to use my host PC's hg (which is already configured for authentication).  I had to remove (-c clean) the mercurial-native application first though.  But, if anyone can figure out or has figured out how to setup mercurial-native for authenticating with hg servers I would still be glad to hear for you.
Poole, Donald R. wrote
Thanks Philip for the references! I have another question though: I have
to authenticate to the mercurial servers in order to clone/fetch and hg
fetcher hangs as a result since the fetcher doesn't have my credentials.
Do you know how to supply credentials to the open embedded native
mercurial so that it automatically enters my credentials to clone/fetch?
I tried installing the python keyring and mercurial_keyring to the native
hg, but was unsuccessful.

Donald R. Poole, Jr.
Research Engineer
Voice: 210.522.3131 | Fax: 210.522.4931
Tactical Networks & Communications (tacticalnetworks.swri.org)
Southwest Research Institute (SwRI)




On 4/12/12 5:56 PM, "Philip Balister" <[hidden email]> wrote:

>On 04/12/2012 01:50 PM, Poole, Donald R. wrote:
>> Hello All,
>>
>> We have developed some Qt applications in our mercurial revision
>>control system that I want to bake with bitbake, but I can't for the
>>life of me figure out what the proper syntax for the SRC_URI variable.
>>Does anyone use mercurial for their version control system and/or know
>>how to format the SRC_URI string so the hg fetcher can fetch our sources
>>from our repo?
>
>Here are some examples:
>
>[balister@oebuild openembedded]$ grep hg:// -r *
>classes/shr-mirrors.bbclass:hg://.*/.*
>http://build.shr-project.org/sources/
>classes/angstrom-mirrors.bbclass:hg://.*/.*
>http://www.angstrom-distribution.org/unstable/sources/
>classes/base.bbclass:    if "hg://" in srcuri:
>classes/own-mirrors.bbclass:hg://.*/.* ${SOURCE_MIRROR_URL}
>recipes/qextserialport/qextserialport.inc:SRC_URI =
>"hg://qextserialport.googlecode.com/hg;rev=${SRCREV};module=qextserialport
>;proto=https"
>recipes/mozilla/fennec_hg.bb:SRC_URI =
>"hg://hg.mozilla.org;module=mozilla-central;rev=${SRCREV} \
>recipes/mozilla/fennec_hg.bb:
>hg://hg.mozilla.org;module=mobile-browser;rev=${SRCREV} \
>recipes/mozilla/firefox_hg.bb:SRC_URI =
>"hg://hg.mozilla.org/;module=mozilla-central;rev=8c9a6d851018 \
>recipes/libsvdrp/libsvdrp_hg.bb:SRC_URI =
>"hg://hg.geexbox.org;module=${PN};rev=${SRCREV}"
>recipes/cacao/cacao-native_hg.bb:SRC_URI =
>"hg://mips.complang.tuwien.ac.at/hg/;module=cacao;rev=${SRCREV}"
j
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to Use Hg (Mercurial) URI in SRC_URI Variable to Fetch Code

j
On 04/15/2012 04:47 PM, Donny3000 wrote:

> Looks like I was able to work around the authentication problem by overriding
> the do_fetch() method, which allow the recipe to use my host PC's hg (which
> is already configured for authentication).  I had to remove (-c clean) the
> mercurial-native application first though.  But, if anyone can figure out or
> has figured out how to setup mercurial-native for authenticating with hg
> servers I would still be glad to hear for you.
>
> Poole, Donald R. wrote
>> Thanks Philip for the references! I have another question though: I have
>> to authenticate to the mercurial servers in order to clone/fetch and hg
>> fetcher hangs as a result since the fetcher doesn't have my credentials.
>> Do you know how to supply credentials to the open embedded native
>> mercurial so that it automatically enters my credentials to clone/fetch?
>> I tried installing the python keyring and mercurial_keyring to the native
>> hg, but was unsuccessful.
>>
>> Donald R. Poole, Jr.
>> Research Engineer
>> Voice: 210.522.3131 | Fax: 210.522.4931
>> Tactical Networks&  Communications (tacticalnetworks.swri.org)
>> Southwest Research Institute (SwRI)
>>
>>
>>
>>
>> On 4/12/12 5:56 PM, "Philip Balister"&lt;philip@&gt; wrote:
>>
>>> On 04/12/2012 01:50 PM, Poole, Donald R. wrote:
>>>> Hello All,
>>>>
>>>> We have developed some Qt applications in our mercurial revision
>>>> control system that I want to bake with bitbake, but I can't for the
>>>> life of me figure out what the proper syntax for the SRC_URI variable.
>>>> Does anyone use mercurial for their version control system and/or know
>>>> how to format the SRC_URI string so the hg fetcher can fetch our sources
>>> >from our repo?
>>>
>>> Here are some examples:
>>>
>>> [balister@oebuild openembedded]$ grep hg:// -r *
>>> classes/shr-mirrors.bbclass:hg://.*/.*
>>> http://build.shr-project.org/sources/
>>> classes/angstrom-mirrors.bbclass:hg://.*/.*
>>> http://www.angstrom-distribution.org/unstable/sources/
>>> classes/base.bbclass:    if "hg://" in srcuri:
>>> classes/own-mirrors.bbclass:hg://.*/.* ${SOURCE_MIRROR_URL}
>>> recipes/qextserialport/qextserialport.inc:SRC_URI =
>>> "hg://qextserialport.googlecode.com/hg;rev=${SRCREV};module=qextserialport
>>> ;proto=https"
>>> recipes/mozilla/fennec_hg.bb:SRC_URI =
>>> "hg://hg.mozilla.org;module=mozilla-central;rev=${SRCREV} \
>>> recipes/mozilla/fennec_hg.bb:
>>> hg://hg.mozilla.org;module=mobile-browser;rev=${SRCREV} \
>>> recipes/mozilla/firefox_hg.bb:SRC_URI =
>>> "hg://hg.mozilla.org/;module=mozilla-central;rev=8c9a6d851018 \
>>> recipes/libsvdrp/libsvdrp_hg.bb:SRC_URI =
>>> "hg://hg.geexbox.org;module=${PN};rev=${SRCREV}"
>>> recipes/cacao/cacao-native_hg.bb:SRC_URI =
>>> "hg://mips.complang.tuwien.ac.at/hg/;module=cacao;rev=${SRCREV}"
> --
> View this message in context: http://gumstix.8.n6.nabble.com/How-to-Use-Hg-Mercurial-URI-in-SRC-URI-Variable-to-Fetch-Code-tp4866429p4884820.html
> Sent from the Gumstix mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> gumstix-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
you could always try asking on the OE irc or mailing list

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Loading...