I was seeing a problem (see debug output below) where it appeared that
p4 was trying to sync all of the depots in my view. I was actually only
interested in one. :)
Added change (see patch further below) so that it does a sync to the
same depot path with which it got the change list. Seems to correct the
issue.
Cheers...Paul...
12:13:02 [C] Something unexpected!
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/vcpx/tailor.py", line 144, in
__call__
self.bootstrap()
File "/usr/lib/python2.5/site-packages/vcpx/tailor.py", line 74, in
bootstrap
actual = dwd.checkoutUpstreamRevision(revision)
File "/usr/lib/python2.5/site-packages/vcpx/source.py", line 244, in
checkoutUpstreamRevision
last = self._checkoutUpstreamRevision(revision)
File "/usr/lib/python2.5/site-packages/vcpx/repository/p4/source.py",
line 199, in _checkoutUpstreamRevision
p4.sync('@' + str(revision), force=force)
File "/usr/lib/python2.5/site-packages/vcpx/repository/p4/p4lib.py",
line 944, in sync
output, error, retval = self._p4run(argv, **p4options)
File "/usr/lib/python2.5/site-packages/vcpx/repository/p4/p4lib.py",
line 480, in _p4run
return _run(argv)
File "/usr/lib/python2.5/site-packages/vcpx/repository/p4/p4lib.py",
line 197, in _run
% (cmd, error, retval))
P4LibError: Error running ''p4' '-p'
'perforcetx.internal.cacheflow.com:1999' 'sync' '-f' '@216509'':
error='Request too large (over 500000); see 'p4 help maxresults'.
' retval='1'
--- tailor/vcpx/repository/p4/source.py.orig 2008-06-23
19:15:41.253892000 -0500
+++ tailor/vcpx/repository/p4/source.py 2008-06-23 19:15:48.084935000
-0500
@@ -91,7 +91,7 @@
name = self._localFilename(f)
self._addParents(name, changeset)
- p4.sync('@' + str(changeset.revision))
+ p4.sync(self.repository.depot_path + "..." + '@' +
str(changeset.revision))
# dict of {path:str -> e:ChangesetEntry}
branched = dict()
@@ -196,7 +196,7 @@
p4=self.__getP4()
desc=p4.describe(revision, shortForm=True)
- p4.sync('@' + str(revision), force=force)
+ p4.sync(self.repository.depot_path + "..." + '@' +
str(revision), force=force)
ts=self.__parseDate(desc['date'])
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor