hg-active.py revision 8703921742d9c7d4d3724f89a39ff0e2725cbe7b
#
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
#
'''
Create a wx-style active list on stdout based on a Mercurial
workspace in support of webrev's Mercurial support.
'''
#
# NB: This assumes the normal onbld directory structure
#
# Allow running from the source tree, using the modules in the source tree
try:
def usage():
try:
except getopt.GetoptError, e:
usage()
parentpath = None
wspath = None
outputfile = None
if opt == '-w':
elif opt == '-o':
elif opt == '-p':
if not wspath:
usage()
try:
fh = None
if outputfile:
try:
except EnvironmentError, e:
else:
else:
# Strip blank lines.
if comments:
else:
if __name__ == '__main__':
try:
except KeyboardInterrupt: