comparison hgext/largefiles/overrides.py @ 15626:931dc4af0d95

largefiles: remove pre-1.7 compatibility code Mercurial 1.7 added the --subrepos flag to status and archive and the largefiles code was still compatible with the old method signatures.
author Martin Geisler <mg@aragost.com>
date Wed, 07 Dec 2011 16:25:51 +0100
parents a77ce45584ef
children 7b7f03502b5a
comparison
equal deleted inserted replaced
15625:efdcce3fd2d5 15626:931dc4af0d95
633 write(f, 'x' in ff and 0755 or 0644, 'l' in ff, getdata) 633 write(f, 'x' in ff and 0755 or 0644, 'l' in ff, getdata)
634 634
635 if subrepos: 635 if subrepos:
636 for subpath in ctx.substate: 636 for subpath in ctx.substate:
637 sub = ctx.sub(subpath) 637 sub = ctx.sub(subpath)
638 try: 638 sub.archive(repo.ui, archiver, prefix)
639 sub.archive(repo.ui, archiver, prefix)
640 except TypeError:
641 sub.archive(archiver, prefix)
642 639
643 archiver.done() 640 archiver.done()
644 641
645 # If a largefile is modified, the change is not reflected in its 642 # If a largefile is modified, the change is not reflected in its
646 # standin until a commit. cmdutil.bailifchanged() raises an exception 643 # standin until a commit. cmdutil.bailifchanged() raises an exception