Is there a way to extract files using RTC CLI by providing just a unique identifier (like workitem #?) and not provide the workspace UUID/name?
The following commands:
lscm list changesets -u username -r URL:9443/ccm -W 70
Change sets:
(1187
lscm list changes -u username -r URL:9443/ccm -j 1187
"changes": [
{
"author":
...
"path": "/unresolved/DeployFile1",
...
lscm get change 1187 /DeployFile1 -u username -r URL:9443/ccm /DeployFile1
Problem running 'get change':
Unable to determine workspace. Specify workspace. Try 'lscm help get change' for more information.
don't work as the last command is unable to determine the workspace.
We have a deployment tool that is supposed to query RTC and grab the file(s) based on user provided input (workitem # in this case). We want to keep it simple for the users and don't want to ask for workitem UUID and workspace UUID.
Any ideas? Thanks!
Related
I have set up a local couchbase one node cluster environment on Ubuntu.
Query runs and fetches result from default bucket after importing all the JSON documents in zip folder using cbdoclcoader command to default bucket
Command:
/opt/couchbase/bin/cbdocloader -c localhost:8091 -u Administrator -p 10i-0113 -b mybucket -m 100 -d Downloads/JSONs_List20211229-20220123T140145Z-001.zip
Query runs and fetches empty result from user defined bucket, scope, and collection and I don't find the reason of this although i have successfully imported json documents using the below command
/opt/couchbase/bin/cbimport json -c localhost:8091 -u Administrator -p 10i-0113 -b One_bucket -f lines -d file://'fileset__e53c883b-bc30-42cb-b4f7-969998c91e3d.json' -t 2 -g %type%::%id% --scope-collection-exp Raw.%type%
My guess is that when I try to create the index, it creates an index on the default bucket and I can not find a way to create an index on my custom bucket.
Please assist
I have fixed it :). Yes I was not getting any results when I try to query the collection because there was no index created on it.
Creating the index fixed the issue.
CREATE PRIMARY INDEX ON default:onebucket.rawscope.fileset
I need to download my source code from Rtc using command line ? Is there any command available to perform this activity?
Assuming you already have a repository workspace, then the CLI command would be scm load. Documentation is here.
To load into the current directory:
scm login -r https://server.com:9443/jazz -u user -P password -n repoNickname
scm load -r repoNickname "Workspace Name"
If the workspace name is not unique in the server, you can try the list workspace command to look for workspaces owned by you:
scm list workspaces -r repoNickname -c userName
The results will contain an alias which can be used in place of the workspace name in the load command. Alternatively you can find the UUID for your workspace by finding your workspace in the web UI and taking note of the url which will contain the workspace UUID.
I can use accurev wip command to find the element changed in other workspaces.
How can I know in Accurev CLI (or GUI) that the element is modified on other streams, not workspaces?
You will need to create a script to obtain this info.
Basically you will run the command:
accurev show -p -fxg -s "Stream Name" -R streams
You will parse this list looking for "hasDefaultGroup="true"".
For each stream that matches, execute the 'accurev stat -d -s' command.
I have a workspace in accurev. Recently I had to change my machine and now I want to setup the accurev workspace on the new machine. When I access my workspace from GUI, it shows old system name saying the workspace is on old system and cannot be accessed from new machine.
Is there any way I can get the same workspace on the new machine? or do I need to create a new workspace on new machine?
This can be done from Accurev GUI.
Goto View -> Workspace.
It will show a list of workspaces you created earlier. Select the workspace you want to modify, right-click and choose Edit. It will open a window for you to enter the path on your new machine (browse to the location on your new machine). Follow the steps clicking next button.
Clicking Finish will update the system with the chosen location and with your new machine as the host name.
Look into "AccuRev chws":
CHWS
change the name and/or definition of a
workspace
USAGE
accurev chws -w
accurev chws -w <workspace> [ -l <new-location> ] [ -m <new-machine> ]
[ -b <new-backing-stream> ] [ -k <kind> ] [ -e <eol-type> ]
accurev chws -s ...
Look particularly at -l and -m.
Is there any command to update my workspace forcedly in Accurev, directly replace the local files with the backed files, and don't care about the conflict files, modified files and so on?
I really miss the cvs command cvs update -C -d
According to question, I have similar issues. Usually I just use following commands:
accurev update -9
accurev pop -O -R .
accurev update
No, you will need to run a few operations. You can create a script to force update your workspace.
Basically, you will generate a list of all the modified, kept, overlap, member files, then purge those files, then update your workspace.
Check out the stat section in the CLI manual.
What You can do is delete all the local files from the file system and then do a:
accurev pop -R <path to local workspace directory>
I had similar issue; First take a back up of existing workspace, then Delete all the files in the local work-space folder. Click update button on Accurev. All files will be re-loaded on the workspace.
If you just want to undo all changes you have done in the workspace:
accurev stat -R -m -fl . | xargs -n 1 accurev purge
You can use similar command with rm / accurev pop to force refetch from backend. You can also vary the flags, -m for modified, -k for kept, -a for all.