Skip to content
  • A. Joël Lamotte (Klaim)'s avatar
    ExternalProject: Tell "hg clone" not to implicitly update · 6a77a77a
    A. Joël Lamotte (Klaim) authored and Brad King's avatar Brad King committed
    By default Mercurial command "clone" will implicitly call "update" with
    the "default" branch after downloading the cloned repository.  However
    ExternalProject_Add() always generates a second "update" command after
    cloning with a tag which is either specified or "tip" (equivalent to
    "default" by default).  Therefore ExternalProject will first clone then
    update to default branch then update to another specified branch if
    provided.  This leads to potentially very long clone operation (in
    particular when the repository default branch contain subrepos) which
    can lead to transaction abort triggered by the server.
    
    Simply use "hg clone -U" to avoid the implicit update during clone.
    Our following call to "hg update" will take care of updating anyway.
    6a77a77a