Mercurial > hg
changeset 42580:eb7bd7d64a9d
merge with stable
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 09 Jul 2019 10:09:46 -0400 |
parents | b8d54f4625cb (current diff) 740a3f39e764 (diff) |
children | bb135a784b70 |
files | mercurial/commands.py mercurial/debugcommands.py |
diffstat | 5 files changed, 21 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsigs Tue Jul 09 12:58:29 2019 +0300 +++ b/.hgsigs Tue Jul 09 10:09:46 2019 -0400 @@ -180,3 +180,4 @@ 4a8d9ed864754837a185a642170cde24392f9abf 0 iQJEBAABCAAuFiEEK8zhT1xnJaouqK63ucncgkqlvdUFAly3aLkQHHJhZkBkdXJpbjQyLmNvbQAKCRC5ydyCSqW91bpXD/0Qdx3lNv6230rl369PnGM7o56BFywJtGtQ0FjBj81/Q6IKNJkAus/FXA02MevAxnKhyCMPHbiWQn4cn+Fpt9Y7FOFl3MTdoY5v4rGDAbAaJsjyK3BNqSwWD1uFaOnFDzA/112MJ6nDciVaOzeD7qakMj8zdVhvyEfFszN7f7xT1JyGc+cOWfbvcIv/IXWZNrSZC0EzcZspfwxYQwFscgDL3AHeKeYqihJ6vgWxgEg4V8ZnJ6roJeERTp2wwvIj/pKSEpgzfLQfHiEwvH9MKMaJHGx4huzWJxYX2DB83LaK7cgkKqzyQ+z8rsb27oFPMVgb1Kg78+6sRujFdkahFWYYGPT6sFBDWkRQ/J7DRnBzHH2wbBoyNkApmLEfaRGJpxX8wojPFGJkNr6GF12uF7E+djsuE8ZL7l4p2YD33NBSzcEjNTlgruRauj/7SoSC3BgDlrqCypCkNgn5nDDjvf6oJx16qGqZsglHJOl0S2LRiGaMQTpBhpDWAyVIAQBRW/vF1IRnNJaQ+dX7M9VqlVsXnfh8WD+FPKDgpiSLO8hIuvlYlcrtU9rXyWu1njKvCs744G836k4SNBoi+y6bi6XbmU0Uv0GSCLyj1BIsqglfXuac0QHlz5RNmS6LVf7z13ZIn/ePXehYoKHu+P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Khisv78lrVGOD5wigt2bb4UiysIgk8+du7HNMqPmS31fCS1vsoJ+y2XoJP2q8bNDiwuVihDWJDlF091HH2+ItmopHGUGeHaxNyRoiSvE7fCBi/u3rleiMsMai8r1QDgBpalUPbaLzBelEKhn2JcDhU5NrG8a+SKRCzpmXkkFPhxrzT1dvEAnoNI0LbmekTDWilp0sZbwdsn2rO51IJ4PU8CgbYROP8Z4DuNMfVyVIpxAEb2zbnIA4YqJ3qcQ3e+qEIw8h9m/ot9YYJ/wCQjIIXN6CUHXLYO30HubNOEDVS4Gem93Gcw==
--- a/.hgtags Tue Jul 09 12:58:29 2019 +0300 +++ b/.hgtags Tue Jul 09 10:09:46 2019 -0400 @@ -193,3 +193,4 @@ 4a8d9ed864754837a185a642170cde24392f9abf 5.0rc0 07e479ef7c9639be0029f00e6a722b96dcc05fee 5.0 c3484ddbdb9621256d597ed86b90d229c59c2af9 5.0.1 +97ada9b8d51bef24c5cb4cdca4243f0db694ab6e 5.0.2
--- a/mercurial/commands.py Tue Jul 09 12:58:29 2019 +0300 +++ b/mercurial/commands.py Tue Jul 09 10:09:46 2019 -0400 @@ -1872,7 +1872,7 @@ [('A', 'after', None, _('record a copy that has already occurred')), ('f', 'force', None, _('forcibly copy over an existing managed file')), ] + walkopts + dryrunopts, - _('[OPTION]... [SOURCE]... DEST'), + _('[OPTION]... SOURCE... DEST'), helpcategory=command.CATEGORY_FILE_CONTENTS) def copy(ui, repo, *pats, **opts): """mark files as copied for the next commit @@ -4699,7 +4699,7 @@ @command('rename|move|mv', [('A', 'after', None, _('record a rename that has already occurred')), - ('f', 'force', None, _('forcibly copy over an existing managed file')), + ('f', 'force', None, _('forcibly move over an existing managed file')), ] + walkopts + dryrunopts, _('[OPTION]... SOURCE... DEST'), helpcategory=command.CATEGORY_WORKING_DIRECTORY)
--- a/mercurial/debugcommands.py Tue Jul 09 12:58:29 2019 +0300 +++ b/mercurial/debugcommands.py Tue Jul 09 10:09:46 2019 -0400 @@ -2286,7 +2286,10 @@ totalrawsize = datasize[2] datasize[2] /= numrevs fulltotal = fullsize[2] - fullsize[2] /= numfull + if numfull == 0: + fullsize[2] = 0 + else: + fullsize[2] /= numfull semitotal = semisize[2] snaptotal = {} if numsemi > 0:
--- a/mercurial/posix.py Tue Jul 09 12:58:29 2019 +0300 +++ b/mercurial/posix.py Tue Jul 09 10:09:46 2019 -0400 @@ -30,7 +30,6 @@ osutil = policy.importmod(r'osutil') -posixfile = open normpath = os.path.normpath samestat = os.path.samestat try: @@ -52,6 +51,19 @@ umask = os.umask(0) os.umask(umask) +if not pycompat.ispy3: + def posixfile(name, mode=r'r', buffering=-1): + fp = open(name, mode=mode, buffering=buffering) + # The position when opening in append mode is implementation defined, so + # make it consistent by always seeking to the end. + if r'a' in mode: + fp.seek(0, os.SEEK_END) + return fp +else: + # The underlying file object seeks as required in Python 3: + # https://github.com/python/cpython/blob/v3.7.3/Modules/_io/fileio.c#L474 + posixfile = open + def split(p): '''Same as posixpath.split, but faster