Jump to content

karmakat

Members
  • Content count

    37
  • Joined

  • Last visited

  • Days Won

    1

karmakat last won the day on January 16

karmakat had the most liked content!

Community Reputation

1 Neutral

About karmakat

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, I am attempting to run a "merge to" operation using cm, which fails with a message like : The "Merge-to" operation cannot be executed because the merge from changeset cs:80@studio_library to branch br:/aberland has conflicts. It is neccesary to run a "Merge from" operation from a workspace to resolve those conflicts. If I run a "merge from" inside the gui, the merge processes without any messages or conflicts! It is unclear what the difference here is, since this afaik this is the exact same operation. My cm command ( server name redacted 😞 cm merge cs:80@rep:studio_library@ssl://#####:8088 --to=br:/aberland@rep:studio_library@ssl://####:8088 --merge I read in an another post that someone was experiencing similar issues when they had xlinks in their repo. If indeed, there are conflicts, I would expect to see a message about what these are. As well, since this operation is part of our pipeline tools that wrap around plastic, if there was a way to display the merge conflict resolver gui, that would be excellent. Any help with this front would be much appreciated as well. Thank you! - Aleks
  2. One already exists from 3 years ago, and was declined, reasoning it is not used much. This is not true. Many sysadmins use this in production, especially in games and animation. Please re-open this! https://plasticscm.uservoice.com/forums/15467-general/suggestions/5627261-create-a-chocolatey-package-for-automated-controll
  3. Hiya, It would be great if you could create a Chocolatey package to install the Plastic SCM client on Windows. Chocolatey is a package manager that we use in our pipeline for installation of 3rd party apps silently. It's pretty great, and you really should have a package on their site! Check out: https://chocolatey.org/ Thanks!
  4. karmakat

    How are cm fileinfo hashes created?

    Ok, figured it out! import hashlib path = "/blah/blah/file.txt" md5 = hashlib.md5() BUF_SIZE = 65536 with open(path, 'rb') as f: while True: data = f.read(BUF_SIZE) if not data: break md5.update(data) print("MD5: {0}".format( md5.hexdigest().decode("hex").encode("base64")) )
  5. karmakat

    How are cm fileinfo hashes created?

    Hiya, I have a need to recreate the file hash that the cm fileinfo command returns using python. Are you able to tell me about what type of hash this is? I can see it's base64 encoded I think? Is it only looking at the bits of the file, or also location , date, etc. ? Thanks!! - Aleks
  6. karmakat

    Illegal Characters in Path

    Yes. Have seen this a number of times in various commands, at least with using python subprocess cmd, though the error output is from cm.exe itself. I will try to recreate this and post on here the stack trace.
  7. Oh wow....embarrassed I missed that somehow in the "cm showcommands --all" Yeesh. Thanks Manu!
  8. Hiya! Is there a way to get the root of a workspace or it's selector given an arbitrary filepath from within in the workspace itself? I have several workspaces, but I want to find the root of path programmatically, so I can work with that particular workspace in my python code. So for instance, I have the path: "C:\users\admin\wkspaces\workspace1\Assets\thing.txt". If I use: I get a print out of the selector file itself, something like: Which is not that helpful for my purposes.... Why is the path "/" ??? Its the same for every workspace afaik so this seems to be useless. What is this meant to represent? I have also considered using "cm lwk" and then comparing the start of the given file path with these, BUT what if there is more than one workspace for a branch? I would have to make a dictionary that compares the selector output from each of these workspaces, and filter through those. However this doesn't solve my problem since the workspace path I need is a network mounted drive and the "cm lwk" only shows workspaces with local paths, even though workspace was created on the local machine. I actually wrote a method that walks up paths until it finds the .plastic folder and parses the selector, and then obviously I have the root of the workspace/repo at this point, but this is obviously a bit expensive... Seems to me that this would be a very helpful method to simply tell what the root of the workspace for a given path when working with pipeline development. May I suggest that we get a parameter for the "showselector" method to get the root of the workspace on the local file system? Thanks for reading! - Aleks
  9. karmakat

    Illegal Characters in Path

    Just wanted to add that double-quotes can cause this error, at least with the "cm update" command.
  10. Hiya, I am looking for a way to query a revision in a changeset for a file that had the operation "Moved" at checkin time. Basically, I want to know the path it was moved from and the path it was moved to. This is different from the "cm status --moved" which will only report what is going on in the current workspace before a checkin. Is this possible? Thank you in advance!
  11. Hiya, Is there any way to see the operation applied to a revision in a changeset? Ie, can I format my cm -ls command response to show whether a file has been Added, Deleted, or Moved? Thanks in advance!
  12. Hi @calbzam, I have tried as you suggested, putting the log file on the desktop, and I also tried the appender type you have here which is different from what @manu suggested. And, the "plasticapi.log.conf" has been in the client folder throughout my testing. Unfortunately I am still not getting any logs when I run "plasticapi" from an elevated command prompt.
  13. Hi @manu, I am trying to run the plasticapi from the same computer the server is running. There really shouldn't be any issues with permissions especially considering the server and the control panel is working within our domain already and can be accessed from other systems in the domain. The netsh commands I have tried: netsh http add urlacl url=http://X.X.X.X:9090/ user=Everyone netsh http add urlacl url=http://+:9090/ user=Everyone netsh http add urlacl url=http://X.X.X.X:9090/ user=specificUserExample Another thing is that you seem to be only able to run this once for a URL or you will get an error like so: Url reservation add failed, Error: 183 Cannot create a file when that file already exists. I have tried as you suggested to create the "plasticapi.log.conf" file where the "plasticapi.exe" file is located. However the destination log file does not seem to get any data. I have tried several configs for the the file itself. Permissions seem fine on the log file. My command for the running the api process is simply to run the plasticapi.exe from the command window. I have also tried with just about every combination of flags and ports but always get the same result: Unable to start the REST API listener. Please make sure that you have HTTP permissions for the current port and user. I am totally stumped here as to why this is not working. The user is an administrator. The cmd.exe is run as administrator. Windows Firewall is off. I have tried disabling antivirus. Without any log information, we have no ability to troubleshoot this issue..... only this Unable to start the REST API listener message. Any help at all would be much appreciated since this is a complete blocker for our pipeline development.
  14. Hiya, I'm pretty sure this is more of a general networking issue, but I am hoping to get any tips on how to troubleshoot this issue. The problem is that I am unable to start the plasticapi.exe rest api on our server, running Windows Server 2012 R2. It is a most basic installation. I get the following message: "Unable to start the REST API listener. Please make sure that you have HTTP permissions for the current port and user." I am running this in a command prompt with elevated privileges The server is already accessible in our network using the client The server control panel is accessible in the browser using port 7178 The hosts file has 127.0.0.1 line un-commented Ran the command: netsh http add urlacl url=http://+:9090/ user=myusername Windows Firewall is disabled. Not sure what other steps could be taken to troubleshoot. Event logs in windows show nothing out of the ordinary. What could we be missing? Thanks in advance!
×