From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Hommey Subject: Walking children commits? Date: Tue, 31 Mar 2015 08:02:09 +0900 Message-ID: <20150330230209.GA20421@glandium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue Mar 31 01:02:23 2015 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YcihI-0006aR-8T for gcvg-git-2@plane.gmane.org; Tue, 31 Mar 2015 01:02:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753378AbbC3XCP (ORCPT ); Mon, 30 Mar 2015 19:02:15 -0400 Received: from ks3293202.kimsufi.com ([5.135.186.141]:56453 "EHLO glandium.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753253AbbC3XCO (ORCPT ); Mon, 30 Mar 2015 19:02:14 -0400 Received: from glandium by zenigata with local (Exim 4.84) (envelope-from ) id 1Ycih7-0005k0-1U for git@vger.kernel.org; Tue, 31 Mar 2015 08:02:09 +0900 Content-Disposition: inline X-GPG-Fingerprint: 182E 161D 1130 B9FC CD7D B167 E42A A04F A6AA 8C72 User-Agent: Mutt/1.5.23 (2014-03-12) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Hi, I am trying to get all the children commits of a set of commits. To do that, I'm using this: git rev-list --topo-order --ancestry-path --boundary ^A ^B ... where A, B, and following are those commits I want the children of. From the gitrevisions documentation, it seems that should get me what I want, but if I build a dag manually (from the output of rev-list --parents) and get all the children of those commits, I get more results than what the command above returns (and that command also gives false positives). Am I doing something wrong, or am I hitting a bug in --ancestry-path walking? In the latter case, I'll try to find a reduced test case, because currently, this involves a 260k commit, 1.5GB repository with close to 2k heads and a set of 153 commits to find the children of. Cheers, Mike