Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 10479:bb508b312359 stable
bundle: exclude csets given in --base, unless they are in --rev (issue1910)
Thanks Jesse Glick for the first version of this patch.
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 16 Nov 2009 16:10:05 -0500 |
parents | 6e5a47398fc5 |
children | b3311e26f94f |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Feb 15 00:14:16 2010 +0100 +++ b/mercurial/commands.py Mon Nov 16 16:10:05 2009 -0500 @@ -537,6 +537,7 @@ has.update(repo.changelog.reachable(n)) if revs: visit = list(revs) + has.difference_update(revs) else: visit = repo.changelog.heads() seen = {} @@ -544,7 +545,8 @@ n = visit.pop(0) parents = [p for p in repo.changelog.parents(n) if p not in has] if len(parents) == 0: - o.insert(0, n) + if n not in has: + o.append(n) else: for p in parents: if p not in seen: