Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


S_Luis last won the day on June 10 2015

S_Luis had the most liked content!

Community Reputation

2 Neutral

About S_Luis

  • Rank

Recent Profile Visitors

1,142 profile views
  1. S_Luis

    Plastic SCM Raspberry

    For those of you who end up here looking for instructions on how to install Plastic SCM on a Raspberry Pi: you need to install the mono-complete package, as it is not enough with mono-runtime. Apart from that, the instructions on the blogpost is pretty much valid. I'll update this post as soon as I publish an updated blogpost on the subject, but for now I'll ask manu to close this thread ?
  2. S_Luis

    Plastic SCM Raspberry

    Hi Jesús, I have pinged some other Jesús on Twitter... I hope that's you. If not, I'll contact you through forum private messages in order to help you get your Plastic SCM server up and running on your Raspberry Pi (that way I'll be able to identify some problems I might have overlooked in order to write a proper instructions blogpost) Thank you! ------ Hola Jesús, He escrito a otro usuario en Twitter, creo que eras tú. Si no, te escribiré por mensajes directos del foro para ayudarte a tener el servidor de Plastic SCM funcionando en tu Raspberry (y, de esa forma, poder identificar algún problema que haya podido pasar por alto a la hora de escribir el blogpost con instrucciones). ¡Gracias!
  3. S_Luis

    Plastic SCM Raspberry

    Hi Jesús! I use Plastic SCM on a Raspberry Pi on a daily basis, and I'm planning on writing a blogpost detailing my setup soon (hopefully by the end of this week). I even have scripts in place to automatically upgrade my setup once a new Plastic SCM version is released, and to backup the Jet backend files to my personal OneDrive. Having Plastic SCM up and running on your Raspberry Pi should be a piece of cake (pun intended!). You just need to install the mono-runtime, extract the zips... sudo apt-get install mono-runtime unzip PlasticSCM- unzip PlasticSCM- ...and inside the server and client directories, navigate to the "scripts" directory, and execute the "genscripts.sh" one. Then, add your server and client directories to your path, and you are done. cd client/scripts chmod u+x genscripts.sh && ./genscripts.sh cd ../../server/scripts chmod u+x genscripts.sh && ./genscripts.sh cd ../../ PATH=/path/to/your/client;/path/to/your/server;$PATH cm location cm version As I said, I'm planning on writing a more in-depth guide soon, so if you have any problems with the steps here, don't hesitate to ping me back. For now you can skip setting up the plasticsd daemon and just run the server the following way: plasticd --daemon >/dev/null 2>&1 &&
  4. S_Luis

    Trigger relative blank path

    I find it weird that your build number is zero ( That number varies with every release independently of the major (5) minor (4) and compatibility (16) numbers. Do you remember when, and from where, did you install your server? :-S
  5. S_Luis

    Trigger relative blank path

    Hi, If you move the trigger to a directory without spaces in its name, and you use the same filter and server parameters, does it correctly run?
  6. S_Luis

    Trigger relative blank path

    Hi! I supposed you read my previous answer to this thread. Still, if the trigger is a client-side one, and your client is running in a Windows machine, you'll still have to indicate the path of the executable using single quotation marks , regardless of the server being a Linux machine. So, the entire command of the trigger should be inside double quoation marks, and the executable, if it contains spaces, should be inside single quotation marks. For example: "'C:\Users\sergi\Desktop\directory with spaces\trigger without params.bat'" If your trigger needs parameters: "'C:\Users\sergi\Desktop\directory with spaces\trigger with params.bat' '<param_1>' '<param_2>' (...)" Hope it helped!
  7. S_Luis

    Trigger relative blank path

    Hi! To create triggers with spaces in the executable path, you have to wrap it inside single inverted commas (or single quotation marks). I created my trigger (using Plastic SCM the following way : cm maketrigger after-setselector "test for Raphael" "'C:\Users\sergi\Destkop\directory with spaces\trigger.bat'" I have checked the documentation and the $WK_SPACES environment variable does not exist. Maybe you meant $PLASTIC_WORKSPACE_PATH? You can take a look to the available environment variables for each trigger in the documentation here: https://www.plasticscm.com/documentation/triggers/plastic-scm-version-control-triggers-guide.shtml Hope it helped!
  8. S_Luis

    Undo changes to a hidden changes item from CLI

    Hi! The cm unco command undoes a checked out file even if it is inside the hidden changes item list. As it doesn't seem to work for you, I'll guess that you have modified your file locally, but you have NOT checked it out (which is OK! let's solve it) You can see the status of locally changed but hidden files with the --hiddenchanged flag fo the status command. Then, once you know which files are you interested in, you can do both a checkout and an undo checkout, which will revert your local changes. The full cycle: 1) --hiddenchanged allows you to see locally modified files if they are not checked out (requires a disk search) $ cm status --hiddenchanged cs:32@rep:myrepo@repserver localhost:8087 Modified items (CH = changed, CO = checkout, CP = copied (new), RP = replaced) CH MyHiddenChangedFile.cs 2) checkout allows you to check out that file. Notice the lack of the --hiddenchanged argument the second time I call cm status, as it is no longer needed. $ cm checkout MyHiddenChangedFile.cs The selected items are about to be checked out. Please wait... Item C:\Users\sluisp\repos\tests\MyHiddenChangedFile.cs was correctly checked out $ cm status cs:32@rep:myrepo@repserver localhost:8087 Modified items (CH = changed, CO = checkout, CP = copied (new), RP = replaced) CO MyHiddenChangedFile.cs 3) undocheckout allows you to undo the checkout on that file, which will also revert its changes: $ cm undocheckout MyHiddenChangedFile.cs C:\Users\sluisp\repos\tests\MyHiddenChangedFile.cs unchecked out correctly $ cm status cs:32@rep:myrepo@repserver localhost:8087 $ cm status --hiddenchanged cs:32@rep:myrepo@repserver localhost:8087 Please let me know if this solved your issue
  9. S_Luis

    Update RSS Trigger on Linux Server

    Almost two years ago I wrote a detailed blogpost to achieve something similar: Integrating Plastic SCM with Google Cloud Messaging. Instead of updating a RSS feed, this blogpost describes how to send a push notification to an Android device. The trigger code was generic enough so that the notification could be sent under different scenarios: a branch was created, a checkin had been done... I think it can be a good starting point for you!
  10. S_Luis

    Blank page bug !

    Hi Sam, this could be an error in a GUI-related configuration file with corrupt (or inconsisten) content. This could happen, for example, if the configuration file has been edited by hand. Keeping in mind that there are quite a lot of configuration files (branch explorer configuration, issue trackers configuration, workspaces...), so, in my opinion, the easiest -and quickest- way to check if a corrupt file is the cause of your issue is following these steps. First of all, make sure that you don't have any pending changes on any of your workspaces: you can do so using the cli, you can find the full documentation here https://www.plasticscm.com/documentation/cli/plastic-scm-version-control-cli-guide.shtml. Plus, you can do with the command client almost anything you can do with the GUI, if at any time it is not available. Look for the "cm add" and "cm ci" commands. Let's start: Go to your personal Plastic SCM client preferences folder, where the configuration files are stored. It should be, for Windows, %HOMEPATH%\AppData\Local\plastic4 (usually C:\Users\<your_user>\AppData\Local\plastic4) Do a full backup of the plastic4 directory contents to other directory (your Desktop, for example). Delete all of the plastic4 directory contents. Open the Plastic SCM GUI. It will prompt you to the server configuration window. Just enter your server address, click connect, and then enter your credentials (if any). Then, you'll be prompted to the welcome window. Click the tab "Join an existing project", choose the repository you usually work with, and for the workspace path on disk, just choose an existing one. This way, the client will not need to download anything from the server. Add the rest of the workspaces you had from "Workspaces > Create new workspace", choosing the path of the already existing workspace. For every workspace, go to the Items view and click "Update workspace". Check if the "blank page" behavior you were facing before occurs again (it should not; all of the configuration files we're using are new!) If it does happen, I'd need to take a look at your Plastic SCM client logs. You can configure the plastic.exe logging following this guide https://www.plasticscm.com/documentation/technical-articles/kb-enabling-logging-for-plastic-scm-part-i.html. If you had any issue tracker configured, you should configure it again too.
  11. S_Luis

    how to diff on console to stdout

    I wrote this tiny script and it works. Little hacky, but works. import sys from subprocess import Popen, PIPE _difftool = "C:\\Program Files (x86)\\GnuWin32\\bin\\diff.exe" def main(): f = open("C:\\Users\\sergio\\Desktop\\diff_output.txt", "w") source = sys.argv[1] destination = sys.argv[2] p = Popen([_difftool, source, destination], stdout=PIPE) out, err = p.communicate() # Ugly 'replace', p.communicate is not beautiful f.write(str(out).replace("\\r\\n", "\n")) f.close() sys.exit(0) if __name__ == "__main__": main() I tried to redirect the stdout of the difftools without success. And, it seems that difftools always exists with code 1, indicating some kind of error. In the first place I thought that was the cause of cm not being able to show the output, as it might be considering a non 0 exit code as an irrecuperable error, but it didn't show my Python's stdout either, so
  12. S_Luis

    how to diff on console to stdout

    You're completely right, nothing shows up. If I had your problem I'd probably write a small Python script that calls diff and recolects the stdout, writing it were needed. Then I'd set that script as the diff tool in Plastic, but I understand that this approach is not the best solution to your problem :/
  13. S_Luis

    how to diff on console to stdout

    What diff tool are you trying to use in Windows? I'm actually curious if can configure it...