equal
deleted
inserted
replaced
1 from __future__ import absolute_import |
1 from __future__ import absolute_import, print_function |
2 import os |
2 import os |
3 from mercurial import ( |
3 from mercurial import ( |
4 commands, |
4 commands, |
5 extensions, |
5 extensions, |
6 ui, |
6 ui, |
34 seenshort = globalshort.copy() |
34 seenshort = globalshort.copy() |
35 seenlong = globallong.copy() |
35 seenlong = globallong.copy() |
36 for option in entry[1]: |
36 for option in entry[1]: |
37 if (option[0] and option[0] in seenshort) or \ |
37 if (option[0] and option[0] in seenshort) or \ |
38 (option[1] and option[1] in seenlong): |
38 (option[1] and option[1] in seenlong): |
39 print "command '" + cmd + "' has duplicate option " + str(option) |
39 print("command '" + cmd + "' has duplicate option " + str(option)) |
40 seenshort.add(option[0]) |
40 seenshort.add(option[0]) |
41 seenlong.add(option[1]) |
41 seenlong.add(option[1]) |