git-p4 runs out of memory

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tommy Thorn
Date: Thursday, January 31, 2008 - 6:18 pm

Trying to survive in a heavily Perforce dominated 
world, git-p4 looked like the perfect antidote. 
Unfortunately I have a few problems:

0. git-p4 swells until it runs out of virtual space!
It
   appears that the scripts tries to read everything 
   into memory:

 filedata = p4CmdList('-x - print',
                      stdin='\n'.join(['%s#%s' %
(f['path'], f['rev'])
                                       for f in
files]),
                      stdin_mode='w+')

  Short of rewriting git-p4, is it possible to clone
in
  multiple steps?

1. Short of full Perforce client support, support of 
   exclusion would have helped. Dmitry Kakurin
provided
   a good start. I'll try to generalize it such that
   multiple exclusion can be specified as 

     -//branch/file/blah

2. Having "git p4 commit" be an alias of 
   "git p4 submit" seems a mistake - this is not a 
   commit like a git commit, but more like a git push.

Thanks
Tommy



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 4/4] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Mon Jan 21, 7:27 am)
[PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Mon Jan 21, 7:27 am)
[PATCH 3/4] git-commit: Refactor creation of log message., Paolo Bonzini, (Mon Jan 21, 7:33 am)
git-p4 runs out of memory, Tommy Thorn, (Thu Jan 31, 6:18 pm)
Re: [PATCH 1/4] git-commit: support variable number of hoo ..., Johannes Schindelin, (Mon Feb 4, 9:43 am)
Re: [PATCH 3/4] git-commit: Refactor creation of log message., Johannes Schindelin, (Mon Feb 4, 9:48 am)