<div dir="ltr">following patch adds basic support to make AUTOREV work for a specific branch for mercurial.<div><br></div><div><div>Signed-off-by: Meric Sentunali &lt;<a href="mailto:merics@wirespring.com">merics@wirespring.com</a>&gt;</div><div>---</div><div> bitbake/lib/bb/fetch2/hg.py | 5 +++--</div><div> 1 file changed, 3 insertions(+), 2 deletions(-)</div><div><br></div><div>diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py</div><div>index 5760fcd..ef00729 100644</div><div>--- a/bitbake/lib/bb/fetch2/hg.py</div><div>+++ b/bitbake/lib/bb/fetch2/hg.py</div><div>@@ -51,6 +51,7 @@ class Hg(FetchMethod):</div><div>             raise MissingParameterError(&#39;module&#39;, ud.url)</div><div> </div><div>         ud.module = ud.parm[&quot;module&quot;]</div><div>+        ud.branch = ud.parm.get(&#39;branch&#39;, &#39;default&#39;)</div><div> </div><div>         # Create paths to mercurial checkouts</div><div>         relpath = self._strip_leading_slashes(ud.path)</div><div>@@ -98,7 +99,7 @@ class Hg(FetchMethod):</div><div>                 hgroot = ud.user + &quot;@&quot; + host + ud.path</div><div> </div><div>         if command == &quot;info&quot;:</div><div>-            return &quot;%s identify -i %s://%s/%s&quot; % (basecmd, proto, hgroot, ud.module)</div><div>+            return &quot;%s identify -i -r %s %s://%s/%s&quot; % (basecmd, ud.branch, proto, hgroot, ud.module)</div><div> </div><div>         options = [];</div><div> </div><div>@@ -113,7 +114,7 @@ class Hg(FetchMethod):</div><div>             if ud.user and ud.pswd:</div><div>                 cmd = &quot;%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \&quot;auth.default.schemes=%s\&quot; clone %s %s://%s/%s %s&quot; % (basecmd, ud.user, ud.pswd, proto, &quot; &quot;.join(options), proto, hgroot, ud.module, ud.module)</div><div>             else:</div><div>-                cmd = &quot;%s clone %s %s://%s/%s %s&quot; % (basecmd, &quot; &quot;.join(options), proto, hgroot, ud.module, ud.module)        </div><div>+                cmd = &quot;%s clone %s %s://%s/%s %s&quot; % (basecmd, &quot; &quot;.join(options), proto, hgroot, ud.module, ud.module)</div><div>         elif command == &quot;pull&quot;:</div><div>             # do not pass options list; limiting pull to rev causes the local</div><div>             # repo not to contain it and immediately following &quot;update&quot; command</div><div>-- </div><div>2.1.0</div><div><br></div></div></div>