##// END OF EJS Templates
profile: close 'fp' in all cases...
profile: close 'fp' in all cases There are no way for this to happen today, but better be safe than sorry, no one know how the code will evolve. We now make sure the file pointer is closed even is profiler is None.

File last commit:

r32059:0ea1d9a7 stable
r32809:062eb859 default
Show More
map-cmdline.show
9 lines | 723 B | text/plain | TextLexer
Gregory Szorc
show: add basic labels to work template...
r32059 # TODO there are a few deficiencies in this file:
# * Due to the way the file is loaded, references to other entities in the
# template doesn't work. That requires us to inline.
# * The "namespace" of the labels needs to be worked out. We currently
# piggyback on existing values so color works.
# * Obsolescence isn't considered for node labels. See _cset_labels in
# map-cmdline.default.
Gregory Szorc
show: new extension for displaying various repository data...
r31765 showbookmarks = '{if(active, "*", " ")} {pad(bookmark, longestbookmarklen + 4)}{shortest(node, 5)}\n'
Gregory Szorc
show: add basic labels to work template...
r32059 showwork = '{label("log.changeset changeset.{phase}", shortest(node, 5))}{if(branches, " ({label("log.branch", branch)})")}{if(bookmarks, " ({label("log.bookmarks", bookmarks)})")} {label("log.description", desc|firstline)}'