--- a/hgext/convert/git.py Sat May 06 04:51:25 2017 +0530
+++ b/hgext/convert/git.py Fri Feb 10 16:56:29 2017 -0800
@@ -32,7 +32,7 @@
return "%s %s" % (self.node, self.path)
# Keys in extra fields that should not be copied if the user requests.
-bannedextrakeys = set([
+bannedextrakeys = {
# Git commit object built-ins.
'tree',
'parent',
@@ -41,7 +41,7 @@
# Mercurial built-ins.
'branch',
'close',
-])
+}
class convert_git(common.converter_source, common.commandline):
# Windows does not support GIT_DIR= construct while other systems
@@ -455,9 +455,9 @@
('refs/heads/', '')
]
- exclude = set([
+ exclude = {
'refs/remotes/origin/HEAD',
- ])
+ }
try:
output, status = self.gitrunlines('show-ref')