Mercurial > hgsubversion
comparison hgsubversion/editor.py @ 534:e38f110e7088
svnmeta: make it easier to get converted revision info
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 30 Jan 2010 09:52:24 +0100 |
parents | 052050ca59d6 |
children | 8dc759dc9ca9 |
comparison
equal
deleted
inserted
replaced
533:7b330c576920 | 534:e38f110e7088 |
---|---|
241 tag = None | 241 tag = None |
242 if not self.meta.is_path_valid(copyfrom_path): | 242 if not self.meta.is_path_valid(copyfrom_path): |
243 self.current.missing.add('%s/' % path) | 243 self.current.missing.add('%s/' % path) |
244 return path | 244 return path |
245 if tag: | 245 if tag: |
246 ci = self.meta.repo[self.meta.tags[tag]].extra()['convert_revision'] | 246 changeid = self.meta.tags[tag] |
247 source_rev, source_branch, = self.meta.parse_converted_revision(ci) | 247 source_rev, source_branch = self.meta.get_source_rev(changeid)[:2] |
248 cp_f = '' | 248 cp_f = '' |
249 else: | 249 else: |
250 source_rev = copyfrom_revision | 250 source_rev = copyfrom_revision |
251 cp_f, source_branch = self.meta.split_branch_path(copyfrom_path)[:2] | 251 cp_f, source_branch = self.meta.split_branch_path(copyfrom_path)[:2] |
252 if cp_f == '' and br_path == '': | 252 if cp_f == '' and br_path == '': |