- Jul 29, 2019
-
-
Pierre-Yves David authored
-
Pierre-Yves David authored
Time for a new version!
-
Pierre-Yves David authored
-
- Jul 25, 2019
-
-
Kyle Lippincott authored
-
- Jul 19, 2019
-
-
Anton Shestakov authored
Also strip trailing newlines.
-
Anton Shestakov authored
If a user wants to spell out -s, it makes sense to allow that. Before this patch, prune would complain that --successor is not a recognized option. Obviously people don't usually need to spell --successors by hand thanks to shell completion (at least for Bash) using debugcomplete to see all available flags, so this patch doesn't bring any need for more typing. And thanks to Mercurial understanding shortened forms of command-line flags as long as they are unambiguous, the old-style `--succ` flags still work normally, and there are tests that use them. But two tests now use the full form to demonstrate that both ways work.
-
- Jul 17, 2019
-
-
Martin von Zweigbergk authored
We'll want to the keys to be bytes and the values to be unicode on py3. Having it defined as a dict makes that easier (instead of converting between the types with e.g. pycompat.sysbytes()). It was kind of ugly to convert between the forms by stripping '_' from the string anyway.
-
- Jul 12, 2019
-
-
Martin von Zweigbergk authored
-
- Jul 17, 2019
-
-
Martin von Zweigbergk authored
Python 3 apparently raises an ImportError where Python 2 raised a ValueError.
-
- Jul 12, 2019
-
-
Martin von Zweigbergk authored
-
- Jul 11, 2019
-
-
Martin von Zweigbergk authored
-
- Jul 12, 2019
-
-
Martin von Zweigbergk authored
-
Martin von Zweigbergk authored
-
- Jul 11, 2019
-
-
Martin von Zweigbergk authored
Python3 doesn't support "%s" with int arguments (and not with None arguments either, which this code was also using).
-
- Jul 17, 2019
-
-
Martin von Zweigbergk authored
random.choice() (and others based on random.randint()) changed between py2 and py3 without a way to get the py2 behavior. However, random.random() did not change, so we can re-implement random.choice() based on that.
-
- Jul 13, 2019
-
-
Martin von Zweigbergk authored
-
- Jul 17, 2019
-
-
Martin von Zweigbergk authored
-
- Jun 15, 2019
-
-
kevpeng authored
-
- Jul 11, 2019
-
-
Martin von Zweigbergk authored
-
- Jul 12, 2019
-
-
Martin von Zweigbergk authored
-
Martin von Zweigbergk authored
Replaced by "'%s'", which I think is clearer anyway.
-
- Jul 11, 2019
-
-
Martin von Zweigbergk authored
These are all for messages to the user and we don't want unicode for that.
-
Martin von Zweigbergk authored
-
- Jul 09, 2019
-
-
Martin von Zweigbergk authored
array.array.{to,from}string() still exists on py3, but they're deprecated and generate warnings. I've put the compat function in compat.pt for now. We can move into a dedicated pycompat.py if we end up with a lot of py3 compat stuff.
-
- Jul 11, 2019
-
-
Martin von Zweigbergk authored
-
- Jul 13, 2019
-
-
Martin von Zweigbergk authored
Mercurial's source transformer also replaces the 'def iteritems(' in branchmap by 'def items(', so we need to call whichever version is there.
-
Martin von Zweigbergk authored
The only remaining iteritems() call is on branchmap. That will be dealt with in the next patch.
-
- Jul 15, 2019
-
-
Martin von Zweigbergk authored
-
- Jul 13, 2019
-
-
Martin von Zweigbergk authored
map(some_generator()) in py2 returns a list, while in py3 it returns a generator, so the passed-in generator won't be called unless the returned one is.
-
- Jul 11, 2019
-
-
Martin von Zweigbergk authored
-
Martin von Zweigbergk authored
-
Martin von Zweigbergk authored
-
Martin von Zweigbergk authored
The py2 and py3 docs ([1] and [2]) disagree how to get bytes output, but it seems obvious that this should be "bytes" to be compatible with both. [1] https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.text_factory [2] https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.text_factory
-
Martin von Zweigbergk authored
-
- Jul 13, 2019
-
-
Martin von Zweigbergk authored
ui.edit() has had the "action" argument since 6e6452bc441d (editor: use an unambiguous path suffix for editor files, 2017-08-30), which was first released in hg version 4.4. Since we support only versions higher than 4.5, we can drop this check.
-
- Jul 12, 2019
-
-
Martin von Zweigbergk authored
`opts.get('rev') or '.'` is either a list of strings or just a string. It happened to work because `'.'[0] == '.'` on Python 2, but it won't work on Python 3 (for byte strings). The fallback value wasn't even needed (it was also set just after), so let's just remove it.
-
Martin von Zweigbergk authored
-
- Jul 11, 2019
-
-
Martin von Zweigbergk authored
-
Martin von Zweigbergk authored
D6623 has now been accepted in Mercurial (commit 83666f011679), so evolve commit 23323092f0a7 (py3: convert _origdoc to sysstr to match __doc__, 2019-07-09) is not longer needed.
-
- Jul 17, 2019
-
-
Pierre-Yves David authored
-