# HG changeset patch # User Dirkjan Ochtman # Date 1224507424 -7200 # Node ID f77c8d8331ca74da8640b9125e60a1dc44755908 # Parent 67ba74938b157045567c4fcd3ba731e54eb8f89f clean up trailing spaces, leading spaces in C diff -r 67ba74938b15 -r f77c8d8331ca hgext/convert/common.py --- a/hgext/convert/common.py Mon Oct 20 14:52:58 2008 +0200 +++ b/hgext/convert/common.py Mon Oct 20 14:57:04 2008 +0200 @@ -80,7 +80,7 @@ raise NotImplementedError() def getchanges(self, version): - """Returns a tuple of (files, copies). + """Returns a tuple of (files, copies). files is a sorted list of (filename, id) tuples for all files changed between version and it's first parent returned by diff -r 67ba74938b15 -r f77c8d8331ca hgext/mq.py --- a/hgext/mq.py Mon Oct 20 14:52:58 2008 +0200 +++ b/hgext/mq.py Mon Oct 20 14:57:04 2008 +0200 @@ -1787,7 +1787,7 @@ the modifications that match those patterns; the remaining modifications will remain in the working directory. - If --short is specified, files currently included in the patch will + If --short is specified, files currently included in the patch will be refreshed just like matched files and remain in the patch. hg add/remove/copy/rename work as usual, though you might want to use diff -r 67ba74938b15 -r f77c8d8331ca mercurial/parsers.c --- a/mercurial/parsers.c Mon Oct 20 14:52:58 2008 +0200 +++ b/mercurial/parsers.c Mon Oct 20 14:57:04 2008 +0200 @@ -301,12 +301,12 @@ unsigned int step; memcpy(decode, data, 64); - offset_flags = ntohl(*((uint32_t *) (decode + 4))); - if (n == 0) /* mask out version number for the first entry */ - offset_flags &= 0xFFFF; - else { + offset_flags = ntohl(*((uint32_t *) (decode + 4))); + if (n == 0) /* mask out version number for the first entry */ + offset_flags &= 0xFFFF; + else { uint32_t offset_high = ntohl(*((uint32_t *) decode)); - offset_flags |= ((uint64_t) offset_high) << 32; + offset_flags |= ((uint64_t) offset_high) << 32; } comp_len = ntohl(*((uint32_t *) (decode + 8))); diff -r 67ba74938b15 -r f77c8d8331ca mercurial/patch.py --- a/mercurial/patch.py Mon Oct 20 14:52:58 2008 +0200 +++ b/mercurial/patch.py Mon Oct 20 14:57:04 2008 +0200 @@ -783,13 +783,13 @@ yield l def scangitpatch(lr, firstline): - """ + """ Git patches can emit: - rename a to b - change b - copy a to c - change c - + We cannot apply this sequence as-is, the renamed 'a' could not be found for it would have been renamed already. And we cannot copy from 'b' instead because 'b' would have been changed already. So diff -r 67ba74938b15 -r f77c8d8331ca tests/printenv.py --- a/tests/printenv.py Mon Oct 20 14:52:58 2008 +0200 +++ b/tests/printenv.py Mon Oct 20 14:57:04 2008 +0200 @@ -20,7 +20,7 @@ import msvcrt msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) - msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) + msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) except ImportError: pass