mercurial/__init__.py
author Andrew Shadura <bugzilla@tut.by>
Tue, 16 Oct 2012 22:41:44 +0200
changeset 18808 962844e8dd8e
parent 0 9117c6561b0b
child 27220 4374d819ccd5
permissions -rw-r--r--
hgk: simplify tags parser As when hg tags is being called without -v option, it returns lines with two elements in each, we can just interate them as if it were a usual Tcl list using foreach and two variables. Line endings and whitespace don't matter when doing so, so we may keep them as is. When we're processing the lines, tag variable is assigned a tag name, and rev is a string in form of revision:hash which we can split on colon. As Tcl8.4 lacks lassign command, and using lindex makes code a bit less readable, we use foreach to iterate over two-element list.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines: