#438: Mercurial does not update to the right revision when building a tag from a
named branch
----------------------+-----------------------
Reporter: cdevienne | Owner: Callek
Type: defect | Status: assigned
Priority: major | Milestone: 0.8.+
Version: 0.8.5 | Resolution:
Keywords: hg |
----------------------+-----------------------
Comment (by pepsiman):
The mercurial steps can operate in full or incremental mode.
full mode can use clean, fresh or clobber methods.
The clean and fresh methods currently use "pull --rev rev".
Using "pull --rev rev" might sometimes be faster than "pull", but it does
the wrong thing when given a tag.
I'd like to change from this:
{{{
#!rst
================ ============== ============== ========================
full incremental
---------------------------------------------- ------------------------
clobber clean fresh None
================ ============== ============== ========================
rmdir purge purge --all
clone pull --rev rev pull
---------------- ----------------------------- ------------------------
update --clean --rev rev
=======================================================================
}}}
to this:
{{{
#!rst
================ ============== ============== ========================
full incremental
---------------------------------------------- ------------------------
clobber clean fresh None
================ ============== ============== ========================
rmdir purge purge --all
clone pull
---------------- ------------------------------------------------------
update --clean --rev rev
=======================================================================
}}}
Patch:
{{{
--- a/master/buildbot/steps/source/mercurial.py
+++ b/master/buildbot/steps/source/mercurial.py
@@ -226,8 +226,6 @@ class Mercurial(Source):
def _pullUpdate(self, res):
command = ['pull' , self.repourl]
- if self.revision:
- command.extend(['--rev', self.revision])
d = self._dovccmd(command)
d.addCallback(self._checkBranchChange)
return d
}}}
--
Ticket URL: <http://trac.buildbot.net/ticket/438#comment:14>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits