Is it possible to checkout files from subversion without those .svn folders? - asp.net

Is it possible to checkout files from subversion without those .svn folders? (for publishing .NET apps to release server).

yes. Just export.
svn export REV URL PATH
the contents of URL will be placed in PATH. (Path and rev is optional.)
Obviously, you should not use this command for starting to work on the files.

TortoiseSVN Version of Hugo's answer:
Use the Repo-Browser to browse to the folder you want to export, Right-Click - > Export, follow the dialog

I believe you can just use the export option.

Checkout by definition requires the subdirectories to manage the file's states. Without them you would not be able to check in if you make changes. You can export but that is not the same as checkout. You can also change the name from .svn to _svn if that is an issue.

If you export, can't commit. Try use a checout and next rename .svn or _svn to another names.
Note _svn and .svn is reserved folders for tortoise svn.

Related

Atom folder Icon

I am seeing this icon on my atom text editor for the first time. Can anyone tell me what it means? I am referring to the dist folder.
This icon is used for a Git submodule, which means that the folder is a separate Git clone (fixed to a certain commit) of a different repo.
Check whether you have a file called .gitmodules in your project's root folder, it should show you which repo that folder points to.
That would also explain why that folder was not pushed to Git. Git is simply keeping track of which repo and commit this folder points to. When cloning this repo on another server, you'll have to make sure that the submodule is checked out as well.
Please take a look at the documentation for Git submodules that I linked to in the first paragraph.
Still not sure what it does, but that folder was not pushed to git correctly when deployed. Something about it being ignored although it was not on my .gitignore.

How to ignore changes in WordPress cache files in Git?

Every time I make a change to one of the WordPress theme files for my site there will be a lot of deleted cache files that automatically follow. Should I commit these changes using Git also or just ignore them? If the latter, what is the proper code I would use for this?
Thank you.
Well, I dont use wordpress, but if you are looking to ignore them you should have a file called .gitignore, and you are going to want to add those files (or if they are all in a folder, the folder) to the .gitignore file. https://github.com/DragonToothSoftware/SLang/blob/lexer-mod/.gitignore here is what mine looks like. It eliminates all of the cmake cache files
You should use a .gitignore file to exclude these files. They are auto-generated, so no need to keep them in repository

Git: How do I pull to a server without bringing the metadata?

I have a staging server I'd like to set up to git pull whenever updates are made to a BitBucket repo. It would be a single repo with multiple submodules, but I can break it apart if that's better.
It'd be a theme that goes to wp-content/themes/
And single/multiple plugins that go to wpp-content/plugins
My question is, (1) is this good practice? and (2) how can I pull the changes without introducing the .git metadata to those (or any public) directory? I assume the metadata has to be somewhere, but how can I hide it?
If this is too vague, please feel free to ask for clarification on something.
Thanks!
Just put the whole thing under git ?
Use .htaccess to disallow the .git folder.
You can use multiple repositories but updating means going to each one and git pull / git fetch git merge.
you could also move the .git directory outside of the web root, make a file called .git with the contents
`gitdir: /path/to/.git`

How to add a directory tree to a ClearCase repository?

I have a directory tree with sub-directories, and I want to add it to a ClearCase repository. Currently I need to rename the directory, use CC's mkdir, and so forth for every dir. Is there a way to do this automatically (maybe a ClearCase command I don't know about, or a script)?
I would recommend using clearfsimport.
See:
"How can I use ClearCase to “add to source control …” recursively?".
"Creating a new subdirectory structure in ClearCase?"
What is nice with this script is that is will:
checkout the parent directories,
make the necessary mkdir for adding new directories
do the mkelem for adding new elements.
Clearteam Explorer has a recursive add to source control, at least for web views - AFAIK

flex air include a directory with the installer

I am creating an AIR application using Flex. In it I need 2 directories downloads & uploads. These directories will have downloaded files & uploaded files.
But the problem is I am not able to create these 2 directories programmatically & also I am not able to include the 2 directories with the installer in the application directory.
Is there any way to create or include directories in the application directory.
Thanks
Create an empty folder inside your Flex project. Right click on your project and go to Properties->Compiler (not exact name but something like that). Make sure it has "Copy nonembedded assets to output directory" (check it if it doesn't). Click Ok.
Export a release build of your AIR app. Do NOT click Finish after the "signing" step. Follow each step until you get to the "assets" screen. It will show you a list of every file and folder in your output (bin-debug, by default) directory.
Check the files you want, uncheck the one's you don't, and click OK. Done. You have your AIR file packaged with whatever file and folder you want.
[...] But I need to create the directories in application directory. I am using: var dir = File.applicationDirectory.resolvePath("upload directory");dir.createDirectory(); And I am getting: at runtime::SecurityManager$/checkPrivilegeForCaller()
This is a know issue. AIR wouldn't allow you to write to the application directory. Instead try writing
either to the File.applicationStorageDirectory (application's scratchpad),
or to the File.documentsDirectory (stuff user might want to lookup)
Related resources:
Adobe AIR team blogpost
Use This Dear :)
var dir:File = File.applicationDirectory.resolvePath("NewFolder");
dir =new File(dir.nativePath.toString());
dir.createDirectory();
Regards
Ali Naqvi
have you tried something like the following
var dir = File.userDirectory.resolvePath("upload directory");
dir.createDirectory();
This will create the directory 'upload directory' if it does not already exist (inside the users home directory).
To add to johncblandii's anwser:
I've found that for the above to work, you also need to include the folder in the project's build path. I also had to refresh the project's file listing before flash builder recognized the folder and added it to the include options.
I just want to add another thing to johncblandii's comment: Create an empty.txt file and write something there. Because it looks like empty folders are nod allowed to be included in your packed application

Resources