Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 25624:f0745da75056
publishing: use new helper method
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 18 Jun 2015 15:34:22 -0500 |
parents | f1d46075b13a |
children | 328739ea70c3 |
comparison
equal
deleted
inserted
replaced
25623:0bee97fa1fa8 | 25624:f0745da75056 |
---|---|
251 def prog(topic, pos): | 251 def prog(topic, pos): |
252 if pos is None: | 252 if pos is None: |
253 closetopic[0] = topic | 253 closetopic[0] = topic |
254 else: | 254 else: |
255 ui.progress(topic, pos + num) | 255 ui.progress(topic, pos + num) |
256 srcpublishing = srcrepo.ui.configbool('phases', 'publish', True) | 256 srcpublishing = srcrepo.publishing() |
257 srcvfs = scmutil.vfs(srcrepo.sharedpath) | 257 srcvfs = scmutil.vfs(srcrepo.sharedpath) |
258 dstvfs = scmutil.vfs(destpath) | 258 dstvfs = scmutil.vfs(destpath) |
259 for f in srcrepo.store.copylist(): | 259 for f in srcrepo.store.copylist(): |
260 if srcpublishing and f.endswith('phaseroots'): | 260 if srcpublishing and f.endswith('phaseroots'): |
261 continue | 261 continue |