[PATCH 01 of 10] chgserver: mangle server address to include confighash

Yuya Nishihara yuya at tcha.org
Thu Mar 3 09:21:43 EST 2016


On Wed, 2 Mar 2016 10:44:03 +0000, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1456913406 0
> #      Wed Mar 02 10:10:06 2016 +0000
> # Node ID b8522c5e995a8a49c53ad68cbd215fb50bebfbf8
> # Parent  d8d4dccea8d6ad5ba738f14485ed18ec61c2b807
> chgserver: mangle server address to include confighash

Reordered the patch 1 and 2 to avoid test failure at this revision, and pushed
to the clowncopter, thanks.

> +    def _createsymlink(self):
> +        if self.baseaddress == self.address:
> +            return
> +        tempaddress = _tempaddress(self.baseaddress)
> +        os.symlink(self.address, tempaddress)
> +        os.rename(tempaddress, self.baseaddress)

Changed to use util.rename().


More information about the Mercurial-devel mailing list