# HG changeset patch # User Martin Geisler # Date 2011-05-24 14:12:01 # Node ID ede7cea1550f3745da21ebc462129f4d5046af8a # Parent 0174d1f792808d1df7a0ebe8d344f1e1d2abd1e2 wireproto: do not hash when heads == ['force'] Changeset 88f0e41d8802 introduced the unbundlehash capability and unconditionally hashed the heads on the client side. By mistake, the heads were also cased in the heads == ['force'] case. diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -139,7 +139,7 @@ class wirerepository(repo.repository): remote server as a bundle. Return an integer indicating the result of the push (see localrepository.addchangegroup()).''' - if self.capable('unbundlehash'): + if heads != ['force'] and self.capable('unbundlehash'): heads = encodelist(['hashed', util.sha1(''.join(sorted(heads))).digest()]) else: