From: Antoine Pelisse <apelisse@gmail.com>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: [PATCH 3/4] remote-hg: fix 'shared path' path
Date: Fri, 13 Dec 2013 18:58:04 +0100 [thread overview]
Message-ID: <CALWbr2wkSNDh2VTz05sndymUe=fOsApMrg6Jjp0a6mbEfhru=g@mail.gmail.com> (raw)
In-Reply-To: <1386421783-27781-4-git-send-email-felipe.contreras@gmail.com>
On Sat, Dec 7, 2013 at 2:09 PM, Felipe Contreras
<felipe.contreras@gmail.com> wrote:
> If the repository is moved, the absolute path of the shared repository
> would fail.
>
> Make sure it's always up-to-date.
>
> Reported-by: Michael Davis <mjmdavis@gmail.com>
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---
> contrib/remote-helpers/git-remote-hg | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
> index aa1d230..718ef95 100755
> --- a/contrib/remote-helpers/git-remote-hg
> +++ b/contrib/remote-helpers/git-remote-hg
> @@ -416,6 +416,9 @@ def get_repo(url, alias):
> local_path = os.path.join(dirname, 'clone')
> if not os.path.exists(local_path):
> hg.share(myui, shared_path, local_path, update=False)
> + else:
> + # make sure the shared path is always up-to-date
> + util.writefile(os.path.join(local_path, '.hg', 'sharedpath'), hg_path)
Considering this is modifying a "private mercurial file", would it
make sense to include a test like I did in my equivalent patch ?
next prev parent reply other threads:[~2013-12-13 17:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-07 13:09 [PATCH 0/4] remote-helpers: fixes Felipe Contreras
2013-12-07 13:09 ` [PATCH 1/4] remote-hg: avoid buggy strftime() Felipe Contreras
2013-12-07 13:09 ` [PATCH 2/4] remote-helpers: add extra safety checks Felipe Contreras
2013-12-07 13:09 ` [PATCH 3/4] remote-hg: fix 'shared path' path Felipe Contreras
2013-12-13 17:58 ` Antoine Pelisse [this message]
2013-12-17 22:25 ` Junio C Hamano
2013-12-23 20:23 ` [PATCH] remote-hg: test 'shared_path' in a moved clone Antoine Pelisse
2013-12-07 13:09 ` [PATCH 4/4] remote-hg: add tests for special filenames Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALWbr2wkSNDh2VTz05sndymUe=fOsApMrg6Jjp0a6mbEfhru=g@mail.gmail.com' \
--to=apelisse@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).