comparison fetch_command.py @ 154:6fa97cfbf62f

fetch: Refactor extra creation to be shared by real and diff replay. Add convert-compatible meta information to extra.
author Augie Fackler <durin42@gmail.com>
date Tue, 23 Dec 2008 11:10:32 -0600
parents 22162380c4b9
children 91c818377703
comparison
equal deleted inserted replaced
153:46f6b872c988 154:6fa97cfbf62f
500 # Either this revision or the previous one does not exist. 500 # Either this revision or the previous one does not exist.
501 ui.status("fetching entire rev: %s.\n" % e.message) 501 ui.status("fetching entire rev: %s.\n" % e.message)
502 files_touched, filectxfn = stupid_fetch_branchrev( 502 files_touched, filectxfn = stupid_fetch_branchrev(
503 svn, hg_editor, b, branches[b], r, parentctx) 503 svn, hg_editor, b, branches[b], r, parentctx)
504 504
505 extra = {} 505 extra = util.build_extra(r.revnum, b, svn.uuid, svn.subdir)
506 if b:
507 extra['branch'] = b
508 if '' in files_touched: 506 if '' in files_touched:
509 files_touched.remove('') 507 files_touched.remove('')
510 if parentctx.node() != node.nullid or files_touched: 508 if parentctx.node() != node.nullid or files_touched:
511 # TODO(augie) remove this debug code? Or maybe it's sane to have it. 509 # TODO(augie) remove this debug code? Or maybe it's sane to have it.
512 for f in files_touched: 510 for f in files_touched: