comparison __init__.py @ 302:675d92789941

debugging source-version function
author James Bergstra <bergstrj@iro.umontreal.ca>
date Tue, 10 Jun 2008 11:02:22 -0400
parents 57c45df381f1
children 410a6ef674ed
comparison
equal deleted inserted replaced
301:57c45df381f1 302:675d92789941
49 tokens = hg_id.split(' ') 49 tokens = hg_id.split(' ')
50 assert len(tokens) <= 2 50 assert len(tokens) <= 2
51 assert len(tokens) >= 1 51 assert len(tokens) >= 1
52 assert tokens[0][-1] != '+' # the trailing + indicates uncommitted changes 52 assert tokens[0][-1] != '+' # the trailing + indicates uncommitted changes
53 if len(tokens) == 2: 53 if len(tokens) == 2:
54 assert tokens[1] == 'tip' 54 assert tokens[1] == 'tip\n'
55 55
56 return tokens[0] 56 return tokens[0]
57 57