Show More
@@ -48,7 +48,12 b' def safehasattr(thing, attr):' | |||||
48 | return getattr(thing, attr, _undefined) is not _undefined |
|
48 | return getattr(thing, attr, _undefined) is not _undefined | |
49 | setattr(util, 'safehasattr', safehasattr) |
|
49 | setattr(util, 'safehasattr', safehasattr) | |
50 |
|
50 | |||
51 | formatteropts = commands.formatteropts |
|
51 | # for "historical portability": | |
|
52 | # use locally defined empty option list, if formatteropts isn't | |||
|
53 | # available, because commands.formatteropts has been available since | |||
|
54 | # 3.2 (or 7a7eed5176a4), even though formatting itself has been | |||
|
55 | # available since 2.2 (or ae5f92e154d3) | |||
|
56 | formatteropts = getattr(commands, "formatteropts", []) | |||
52 |
|
57 | |||
53 | # for "historical portability": |
|
58 | # for "historical portability": | |
54 | # use locally defined option list, if debugrevlogopts isn't available, |
|
59 | # use locally defined option list, if debugrevlogopts isn't available, |
General Comments 0
You need to be logged in to leave comments.
Login now