Show More
@@ -704,6 +704,9 b' def hgmerge(orig, repo, node, force=None' | |||||
704 | # working copy |
|
704 | # working copy | |
705 | def overridepull(orig, ui, repo, source=None, **opts): |
|
705 | def overridepull(orig, ui, repo, source=None, **opts): | |
706 | revsprepull = len(repo) |
|
706 | revsprepull = len(repo) | |
|
707 | if not source: | |||
|
708 | source = 'default' | |||
|
709 | repo.lfpullsource = source | |||
707 | if opts.get('rebase', False): |
|
710 | if opts.get('rebase', False): | |
708 | repo._isrebasing = True |
|
711 | repo._isrebasing = True | |
709 | try: |
|
712 | try: | |
@@ -717,9 +720,6 b' def overridepull(orig, ui, repo, source=' | |||||
717 | def _dummy(*args, **kwargs): |
|
720 | def _dummy(*args, **kwargs): | |
718 | pass |
|
721 | pass | |
719 | commands.postincoming = _dummy |
|
722 | commands.postincoming = _dummy | |
720 | if not source: |
|
|||
721 | source = 'default' |
|
|||
722 | repo.lfpullsource = source |
|
|||
723 | try: |
|
723 | try: | |
724 | result = commands.pull(ui, repo, source, **opts) |
|
724 | result = commands.pull(ui, repo, source, **opts) | |
725 | finally: |
|
725 | finally: | |
@@ -730,9 +730,6 b' def overridepull(orig, ui, repo, source=' | |||||
730 | finally: |
|
730 | finally: | |
731 | repo._isrebasing = False |
|
731 | repo._isrebasing = False | |
732 | else: |
|
732 | else: | |
733 | if not source: |
|
|||
734 | source = 'default' |
|
|||
735 | repo.lfpullsource = source |
|
|||
736 | oldheads = lfutil.getcurrentheads(repo) |
|
733 | oldheads = lfutil.getcurrentheads(repo) | |
737 | result = orig(ui, repo, source, **opts) |
|
734 | result = orig(ui, repo, source, **opts) | |
738 | if opts.get('cache_largefiles'): |
|
735 | if opts.get('cache_largefiles'): | |
@@ -750,8 +747,8 b' def overridepull(orig, ui, repo, source=' | |||||
750 | (cached, missing) = lfcommands.cachelfiles(ui, repo, head) |
|
747 | (cached, missing) = lfcommands.cachelfiles(ui, repo, head) | |
751 | numcached += len(cached) |
|
748 | numcached += len(cached) | |
752 | ui.status(_("%d largefiles cached\n") % numcached) |
|
749 | ui.status(_("%d largefiles cached\n") % numcached) | |
|
750 | revspostpull = len(repo) | |||
753 | if opts.get('all_largefiles'): |
|
751 | if opts.get('all_largefiles'): | |
754 | revspostpull = len(repo) |
|
|||
755 | revs = [] |
|
752 | revs = [] | |
756 | for rev in xrange(revsprepull, revspostpull): |
|
753 | for rev in xrange(revsprepull, revspostpull): | |
757 | revs.append(repo[rev].rev()) |
|
754 | revs.append(repo[rev].rev()) |
General Comments 0
You need to be logged in to leave comments.
Login now