rtcTo / rtc2git

A tool made for migrating code from an existing IBM's RTC SCM repository into a Git repository
https://rtc.to
MIT License
80 stars 61 forks source link

Unknown subcommand "show" - returned non-zero exit status 12. #168

Open ripudamann opened 1 year ago

ripudamann commented 1 year ago

Hi,

I have setup the config.ini according to the credentials with details on workspace and stream.

When I run migration.py. I get the error as below:

Unknown subcommand "show" 17:42:40 - Command 'lscm --show-alias n --show-uuid y show attributes -r url -w ' returned non-zero exit status 12.

However, If I run the same command through command line it returns the inputs like this though.

Command: scm --show-alias n --show-uuid y show attributes -r -w Output: () "WORKSPACE_NAME" Repository: Ownedby: () "" Visibility: () ""

Could one of you please help with resolving this error while running migration.py? Appreciate your inputs and help on this in advance.

Best regards

jpachta commented 1 year ago

Hi ripudamann

I think your command is missing the attribute STREAMNAME of the parameter -w

Usage: lscm --show-alias n --show-uuid y show attributes -r REPO -w STREAMNAME

The STREAMNAME value is manually defined in the config.ini in section Migration as StreamToMigrate = STREAMNAME

If it helps here is typical response of the command manually executed 'lscm --show-alias n --show-uuid y show attributes -r REPO -w STREAMNAME' on my instance:

> lscm --show-alias n --show-uuid y show attributes -r REPO -w STREAMNAME
(_xxxxxxxxxxxxxxxxxxSmew) "STREAMNAME"
  Repository: REPO
  Ownedby: (_zzzzzzzzzzzzzzzzzzTacA) "xxxxxx"
  Visibility: (_zzzzzzzzzzzzzzzzzzTacA) "xxxxxx"
  Description:
  Text of description if any.