Skip to content

Commit

Permalink
Adding more p4 options
Browse files Browse the repository at this point in the history
Adding options from http://www.perforce.com/perforce/r15.1/manuals/cmdref/p4_changes.html

The last, "custom" option allows adding any option which does not require a name, like this one for example "@2011/04/01,@2011/05/01":

	p4 changes @2011/04/01,@2011/05/01

Or "//depot/project/..."

	p4 changes -m 5 //depot/project/...

Option "cmd" has to be more than just an empty string in order for the query on line 23 of index.js to pass.

Ether that or we need to add  || ""===p4option.cmd to line 23 of index.js if "cmd" is an empty string.
  • Loading branch information
cope committed Aug 27, 2015
1 parent f5ceefe commit 01b1571
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions p4options.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,37 @@ module.exports = {
cmd: '-m',
type: Number,
category: 'mixed'
},
client: {
cmd: '-c',
type: String,
category: 'mixed'
},
long: {
cmd: '-l',
category: 'unary'
},
trunk: {
cmd: '-L',
category: 'unary'
},
status: {
cmd: '-s',
type: String,
category: 'mixed'
},
time: {
cmd: '-t',
category: 'unary'
},
user: {
cmd: '-u',
type: String,
category: 'mixed'
},
custom: {
cmd: ' ',
type: String,
category: 'mixed'
}
};

0 comments on commit 01b1571

Please sign in to comment.