equal
deleted
inserted
replaced
205 kw = dict([[t.strip() for t in l.split(':', 1)] |
205 kw = dict([[t.strip() for t in l.split(':', 1)] |
206 for l in open('.hg_archival.txt')]) |
206 for l in open('.hg_archival.txt')]) |
207 if 'tag' in kw: |
207 if 'tag' in kw: |
208 version = kw['tag'] |
208 version = kw['tag'] |
209 elif 'latesttag' in kw: |
209 elif 'latesttag' in kw: |
210 version = '%(latesttag)s+%(latesttagdistance)s-%(node).12s' % kw |
210 if 'changessincelatesttag' in kw: |
|
211 version = '%(latesttag)s+%(changessincelatesttag)s-%(node).12s' % kw |
|
212 else: |
|
213 version = '%(latesttag)s+%(latesttagdistance)s-%(node).12s' % kw |
211 else: |
214 else: |
212 version = kw.get('node', '')[:12] |
215 version = kw.get('node', '')[:12] |
213 |
216 |
214 if version: |
217 if version: |
215 f = open("mercurial/__version__.py", "w") |
218 f = open("mercurial/__version__.py", "w") |