From: Pete Wyckoff <pw@padd.com>
To: John Chapman <thestar@fussycoder.id.au>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: New script to convert p4 repositories to git - git-p4c version 1.
Date: Wed, 17 Dec 2008 09:04:19 -0500 [thread overview]
Message-ID: <20081217140419.GA25761@osc.edu> (raw)
In-Reply-To: <1229377952.18839.11.camel@therock.nsw.bigpond.net.au>
thestar@fussycoder.id.au wrote on Tue, 16 Dec 2008 08:52 +1100:
> On Mon, 2008-12-15 at 14:30 -0500, Pete Wyckoff wrote:
> Modifying the on_branch code is the right place to do what you want,
> however I was hoping that specifying your 'interesting' branches by
> regexp would be sufficient? All those places that do not get matched
> are effectively ignored and do not become part of the git repo.
[..]
> Do you need to use a client spec here, or is it possible to just use
> regexps? I'd like to try and avoid the need to parse the clientspec,
> that's all.
There is code to parse the client spec in git-p4, and I did hack it
to put the various depot contents in the git tree according to where
the spec says they go. Not a big hassle, and will do the same for
git-p4c if needed. (Not clean enough or tested with non-client-spec
configs to submit upstream for git-p4 though.)
> The script does try to import the full history, however it starts that
> history only at the most recent change, which is defined as a tag.
>
> Thus, if your main branch is 'trunk', then you should be able to
> manually import your changes, tag it as 'trunk/102388', to indicate
> that's p4's revision 102388 of trunk, and the script should then begin
> checking out changeset 102389. I haven't had a chance to test that
> theory yet, but it should work.
Okay, this is interesting. Would like to pursue that approach.
Except for the "manually import" part. Maybe bits of git-p4's
full-checkout model could be borrowed here? Anyway, will take a
look when you're ready.
-- Pete
prev parent reply other threads:[~2008-12-17 14:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-09 10:25 New script to convert p4 repositories to git - git-p4c version 1 John Chapman
2008-12-14 13:11 ` Jakub Narebski
2008-12-15 19:30 ` Pete Wyckoff
2008-12-15 21:52 ` John Chapman
2008-12-17 14:04 ` Pete Wyckoff [this message]
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=20081217140419.GA25761@osc.edu \
--to=pw@padd.com \
--cc=git@vger.kernel.org \
--cc=thestar@fussycoder.id.au \
/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).