svk v git + possible gig

Nicholas Clark nick at ccl4.org
Tue Sep 9 11:46:56 BST 2008


On Tue, Sep 09, 2008 at 11:21:10AM +0100, Billy Abbott wrote:
> On Tue, 9 Sep 2008, Rafael Garcia-Suarez wrote:

> >d. one needs to p4-edit files one want to modify, and even if they're
> >not modified, they're still part of the submitted changeset.
> 
> While not an ideal solution, you can easily remove any files you don't 
> want in the change set when you submit. I use a command line client and 
> just chop off any files that I haven't modded in the interactive check-in 
> form. You can also pass an option to change the behaviour to only submit 
> changed files - 
> http://www.perforce.com/perforce/doc.current/manuals/cmdref/submit.html

But [one for hates-software]:

$ p4 opened
//depot/perl/AUTHORS#177 - edit default change (text)
//depot/perl/ext/util/make_ext#21 - edit default change (text)
//depot/perl/ext/util/make_ext_cross#2 - edit default change (text)
$ p4 submit ext/util/make_ext ext/util/make_ext_cross
Usage: submit [ -i -s -r ] [ -c changelist# ] [file] 
Missing/wrong number of arguments.


Oh. Wait. The page Billy links to says files. Maybe I have an old client...

$ wget http://www.perforce.com/downloads/perforce/r08.1/bin.linux26x86/p4
--11:45:18--  http://www.perforce.com/downloads/perforce/r08.1/bin.linux26x86/p4
           => `p4'
Resolving www.perforce.com... 206.173.243.5
Connecting to www.perforce.com|206.173.243.5|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://filehost.perforce.com/perforce/r08.1/bin.linux26x86/p4 [following]
--11:45:19--  http://filehost.perforce.com/perforce/r08.1/bin.linux26x86/p4
           => `p4'
Resolving filehost.perforce.com... 206.225.83.22
Connecting to filehost.perforce.com|206.225.83.22|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 556,272 (543K) [application/octet-stream]

100%[====================================>] 556,272      161.60K/s    ETA 00:00

11:45:24 (161.15 KB/s) - `p4' saved [556272/556272]

$ chmod +x p4
$ ./p4 submit ext/util/make_ext ext/util/make_ext_cross
Usage: submit [ -i -s -r ] [ -c changelist# ] [file] 
Missing/wrong number of arguments.
$ ./p4 -V
Perforce - The Fast Software Configuration Management System.
Copyright 1995-2008 Perforce Software.  All rights reserved.
Rev. P4/LINUX26X86/2008.1/158777 (2008/07/09).



FAIL!

Yes, if you want to submit more than one file from the current opened files,
*but not all of them* then the only way to do it is to edit the changeset
as you write your commit message. ie something you can forget.


Nicholas Clark


More information about the london.pm mailing list