Re: [PATCH v3] remotes-hg: bugfix for fetching non local remotes
- From
Antoine Pelisse <apelisse@gmail.com>
- Date
- Jul 25, 2013, 21:10 UTC
- Message-ID
- <CALWbr2x9fG=diZPN-Wkq+-7bstoVmN_pnXN0EPi=4MZQVRuYXg@mail.gmail.com>
- In-Reply-To
- <CAMP44s2v+CF7x+S6_47CiPb6RMXu+iy06gqWNjus4vff5J8z3g@mail.gmail.com>
On Thu, Jul 25, 2013 at 10:40 PM, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 7 quoted lines
> That's true. Maybe something like: > > for x in repos: > local_hg = os.path.join(shared_path, x, 'clone', '.hg') > if os.path.exists(local_hg): > shutil.copytree(local_hg, hg_path) > break
I think that would work, but I think the patch from Joern Hees would have to be reverted first (as it's merged in next)
Cheers, Antoine