##// END OF EJS Templates
rebase: make collapsing use explicit logic to decide on the rev to reuse...
rebase: make collapsing use explicit logic to decide on the rev to reuse This code: for rev in sortedstate: ... ... newnode = concludenode(repo, rev, p1, rbsrt.external, commitmsg=commitmsg, extrafn=extrafn, editor=editor, keepbranches=rbsrt.keepbranchesf, date=rbsrt.date) uses 'rev' variable in 'concludenode' function invocation. It is not explicitly assigned before, but its value comes as last value or 'rev' in a for loop, e.g. last element in a 'sortedstate'. IMO this a bad style and it also makes it hard to refactor the function, so it is better to explicitly define the value passed to 'concludenode'.

File last commit:

r28450:155e3308 default
r29474:56641501 default
Show More
__init__.py
3 lines | 105 B | text/x-python | PythonLexer
from __future__ import absolute_import
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)