git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-p4 question

From
Alex Riesen <raa.lkml@gmail.com>
Date
Aug 10, 2007, 16:25 UTC
Message-ID
<81b0412b0708100925g45b5d3e7j19141374f7f57458@mail.gmail.com>
In-Reply-To
<69b0c0350708100817u58f74acbyed5c19830cb92ed7@mail.gmail.com>
On 8/10/07, Govind Salinas <govindsalinas@gmail.com> wrote:
> I am having some problems running the script.  It seems that (line
> 1425) $f->{sha1} is uninitialized and causing the import to fail (the
> perforce path is missing the leading "//" I don't know if that is
> intentional).

the line in question deals with local pathnames, so it is expected. What i don't understand is how did you manage to have the file without sha1... Could you put a

 print "$tmpfile\n";
after line 1400?
 open($ft,'>',$tmpfile) or die "$tmpfile: $!\n";

and run git-p4-import -v -v -v? Than it possible to compare lists of the files which is acquired through p4 change with the list of files output by p4 print.

What perforce client version do you have, BTW?
>  Let me know if you want to continue this off list since
> it isn't really a part of git.
It isn't. We can continue privately
Previous: Govind Salinas
Message 5 of 5 in “git-p4 question”
  1. Govind SalinasAug 10, 2007
  2. Alex RiesenAug 10, 2007
  3. Alex RiesenAug 10, 2007
  4. Govind SalinasAug 10, 2007
  5. Alex RiesenAug 10, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.