Sorry, the jazz scm command line tool, is the somewhat arrogantly named "scm".
"scm share" is the equilavent of "svn add" in that it brings file under source control but does not commit it (or check it into the remote workspace repository). To push it up the the stream (if it exists) we need to "scm deliver". C:\CALMData\Workspaces\RTC\Deb\BogusTest>scm help share Help on share Share one or more directories into an existing workspace/component. Usage: scm share [options] <workspace> <component> <path...> workspace - The workspace to share into (name, alias, or UUID). component - The component to share into (name, alias, or UUID). Must be part of the workspace. path - Path to the directories to share. Must all have the same parent. Options: --certificate arg - The file containing the user's login certificate. --reshare - If any directory is already shared, it will be disconnected and reshared. --smartCard - Use the connected smart card for authentication. -P [--password] arg - Password for repository. -r [--repository-uri] arg - URI specifying the location of repository. -u [--username] arg - Username for repository. -v [--verbose] - Show extra information. C:\CALMData\Workspaces\RTC\Deb\BogusTest> And it chokes on single files. :-( The current implementation - the one that I inherited, does exactly that, it checks in all files in the set. -Chris On Mon, Feb 20, 2012 at 1:37 PM, Brett Porter <[email protected]> wrote: > share doesn't sound like the same thing as add, as it creates new > workspaces. > > It seems like "add" is a no-op for Jazz, and checkin is the operation for > commit - the trick is how you exclude things you didn't intend to add as it > seems checkin will check everything in. > > My only other thought is that you might simulate the behaviour - if > maven-scm's add keeps track of the files to add and commit then runs > checkin with just those files. But that might become a bit risky for doing > the wrong thing (or at least something a Jazz user won't really expected). > > - Brett > > On 20/02/2012, at 12:53 PM, Chris Graham wrote: > > > Hi All. > > > > I've got a question about the scm:add functionality. > > > > I'm stuck between a rock and a hard place in terms of the required > > functionality. > > > > The scm:add command, just places a file under source control but does not > > check it in. Ie, svn add. > > > > However, under jazz SCM/RTC, I have two scm commands that I can use. > > > > scm share > > or > > scm checkin > > > > The scm share command is the same as 'svn add', but it only takes > > directories (and recursively at that!)! > > > > The scm checkin can take individual files, but checks them into the > remote > > repository workspace. But it does not deliver. > > > > Which evil do I choose? > > > > I'm thinking that the checkin option is probably the perferred option, > but > > I'd love to hear what others have to say. > > > > -Chris > > -- > Brett Porter > [email protected] > http://brettporter.wordpress.com/ > http://au.linkedin.com/in/brettporter > http://twitter.com/brettporter > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
