hg-active.py revision e6ccc173e1790aa96d62728631f62d5217d0188d
#
# 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.
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
'''
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
#
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:
except HgRepoError, e:
fh = None
if outputfile:
try:
except EnvironmentError, e:
else:
else:
# Strip blank lines.
if comments:
else:
if __name__ == '__main__':
try:
except KeyboardInterrupt: