workspaces and snapshots found in gui, but not by lscm
![]()
Vince Thyng (137●2●32●52)
| asked Feb 20 '14, 3:18 p.m.
edited Feb 22 '14, 7:37 a.m. by Jennifer Cianchetta-Riordan (251●2)
I need help determining why a very limited number of workspaces and snapshots are listed by lscm list workspaces/snapshots, but the complete list is available in the eclipse gui. v4.0.2, and tried with v4.0.4 scmtools, against a v4.0.4 server. This is first time trying this. So to be clear, I get 12 workspaces returned by lscm, but in the gui there are dozens or hundreds.
I have tried looking at the properties of the snapshots to identify a difference, but there is not much to them. From reading some docs, I see that a snapshot can be associated with either a stream or a workspace. I can not determine which that is when looking at the properties of the snapshot in the gui. I have confirmed I am using the same credentials in both the gui and lscm, and I am a JazzAdmin, Admin for the project area, and a role with every privilege available. I suspect there is something fundamental about either lscm or snapshots that I am not understanding. Like with the lscm list users command, it only shows users without a user id. I won't rant about how useless that is, but perhaps list snapshots is similar, only showing orphaned snapshots? |
2 answers
![]()
Jennifer Cianchetta-Riordan (251●2)
| answered Feb 22 '14, 7:36 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
For your reference, here is the documentation for the "list snapshot" command: http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Flist_snapshots.html
Comments Thank you everyone for your responses. Perhaps I simply don't understand what a prefix is. We have been under the impression is was simply what the snapshot name started with. When I run this command I get 10+ snapshots from the stream.
Vince,
Yes, prefix stands for starts with. I just tried it out and it works for me. I am using 4.0.6 but I don't think there was a change to that functionality after 4.0.4.
Can you try putting quotes around the snapshot prefix and rerun the command? "ss-mfm".
I am using v4.0.2 client libraries against a v4.0.4 server. Still not getting results:
In an attempt to get anything to return with the -n flag, I got this:
I installed the v4.0.4 scmtools as a test and that fixed it! But this is still confusing because I can't say that the prefix feature doesn't work from a v4.0.2 client against v4.0.4 server since I was able to get some results with -n "a".
Also just tried v4.0.3 scmtools and it is not able to use the prefix flag against our v4.0.4 server.
showing 5 of 6
show 1 more comments
|
![]()
Vince,
The -n option allows you to specify the prefix of the snapshot and does not allow for wildcard characters.
list snapshots -r <repoUri> : lists all the snapshots in the repository.
list snapshots -r <repoUri> -n <prefix> : lists all the snapshots in the repository that has the specified prefix.
list snapshots -r <repoUri> <workspace/stream> : lists all the snapshots associated with the workspace or stream.
If that is not the case, then it is a defect.
|
Comments
The fact that I can lscm compare and use the snapshot that I know is there leads me to believe that lscm list is only there to help identify deleted/orphaned objects. So perhaps someone can just confirm that for me.
Hello Vince,
are you running the command with the "-m" option? Running without will give you 10 results be default.
Sonia
I am running -m with a large number to return all snapshots on the server, and then I filter with grep to find what I am interested in, because the -n feature doesn't seem to actually filter, and I can't seem to get the snapshots I am interested in to be returned.