Mercurial > hg
comparison hgext/largefiles/lfcommands.py @ 15303:07811b3b119b stable
largefiles: include 'largefiles' in converted repository requirements
author | Eli Carter <eli.carter@tektronix.com> |
---|---|
date | Tue, 18 Oct 2011 16:40:59 -0500 |
parents | 7ab05d752405 |
children | 3eb1a90ea409 |
comparison
equal
deleted
inserted
replaced
15302:225d30bacabd | 15303:07811b3b119b |
---|---|
107 try: | 107 try: |
108 os.removedirs(os.path.dirname(rdst.wjoin(f))) | 108 os.removedirs(os.path.dirname(rdst.wjoin(f))) |
109 except OSError: | 109 except OSError: |
110 pass | 110 pass |
111 | 111 |
112 # If there were any files converted to largefiles, add largefiles | |
113 # to the destination repository's requirements. | |
114 if lfiles: | |
115 rdst.requirements.add('largefiles') | |
116 rdst._writerequirements() | |
112 else: | 117 else: |
113 for ctx in ctxs: | 118 for ctx in ctxs: |
114 ui.progress(_('converting revisions'), ctx.rev(), | 119 ui.progress(_('converting revisions'), ctx.rev(), |
115 unit=_('revision'), total=rsrc['tip'].rev()) | 120 unit=_('revision'), total=rsrc['tip'].rev()) |
116 _addchangeset(ui, rsrc, rdst, ctx, revmap) | 121 _addchangeset(ui, rsrc, rdst, ctx, revmap) |