bazaar ignore file - bazaar

what is the equivalent of the .hgignore mercurial file in bazaar

.bzrignore (at the top of the repository tree), or ~/.bazaar/ignore (for global ignores). Much more information is easily found on the Bazaar site/tutorial - e.g. http://doc.bazaar-vcs.org/bzr-0.9/tutorial.html.

If you are on Windows the global ignore file is in %appdata%\Bazzar\2.0\ignore

Related

Is there a cross-IDE solution to hint at formatting (like indentation)?

Is there a common mechanism to hint at IDE formatting like indentation (xxx spaces or tabs), and if yes, how well is it supported ?
I have seen something like that a while ago but I am unable to find back the name, it is a file you put at the root of your project.
Format: .editorconfig file, as suggested in the comments by jonrsharpe, is the thing I was looking for.
The file used by stackoverflow as an example.
Support: Beware that some IDEs still have no native support for this and a plugin is required http://editorconfig.org/#download
Concerning line length, there is some ongoing discussion.
In case you use git, some behavior can enforced via:
.gitignore (ignore some files)
.gitattributes (can enforce line endings)
So I would pretty much recommend to have .editorconfig and if you use git .gitignore and .gitattributes files at the root of your project.
Any other suggestions ?

Does the "Ignored Files" settings create an external ignore file for it's select VCS?

I assumed that if I have my VCS set up with Git and listed files within the "ignored files" settings, then IntelliJ Idea is automatically creating a .gitignore file. This doesn't appear to be the case.
My project has a .gitignore file and it does not match the settings within "Ignored Files". I suspect this is a failure on my part to understand what this IntelliJ setting is.
So Ignored Files has nothing to do with my gitignore file?
Right: The "Ignore" feature of IDEA is separate from the specific version control ignore feature.
The IDEA help at https://www.jetbrains.com/help/idea/2016.2/configuring-ignored-files.html says
If the version control system that you are using has its own ignore facilities, use the corresponding native command provided by the version control integration.
Unfortunately the git plugin currently does not have specific commands to deal with .gitignore files.
There is a plugin that deals with that (though I never tried it myself):
https://plugins.jetbrains.com/plugin/7495
Interestingly, I have not found a feature request at IDEA's bug tracker (https://youtrack.jetbrains.com/). You may try to create a request there.

Configure the .bzr directory path in a bazaar repository

I want to create a bazaar repository and have the .bzr directory not alongside the versioned files.
I'm searching for an option like "--git-dir" in git, or a way to achieve the same thing. Evenctually I'd accept an hack too.
A solution using bzrlib is feasible
Example current structure
project/.bzr
project/foo_versioned_file
project/bar_versioned_file
Wannabe structure
project/foo_versioned_file
project/bar_versioned_file
/unrelated_path/.bzr
There is nothing like --git-dir in bzr, but if you only need avoid having the full history along your working tree, then it's worth to consider using lightweight checkouts. Lightweight checkouts allow you to use only small number of files in .bzr/ directory (but you have to have it anyway) and the real branch with its repository and its history can be kept outside the working tree. So:
bzr branch bzr+ssh://HOST/REPO/BRANCH /unrelated_path
bzr checkout --lightweight /unrelated_path project

Is there a way to turn off xemacs auto backup files in a specific directory only?

XEmacs always creates a file named foo.txt~ when you edit foo.txt. This can be really useful but not really when you are using source control on your files.
I know you can use (setq make-backup-files nil) to turn it off altogether but was wondering if there was a way to turn it off only in particular directories.
The version control package will detect if you're in a CVS, RCS, or SCCS repository and disable backups. If you're using another VC backend like hg, git, or svn, you may need to install additional packages to enable emacs to detect their repositories.

Where bazaar looks for rules file?

On Bazaar documentation of its using with Subversion repositories:
http://doc.bazaar.canonical.com/migration/en/foreign/bzr-on-svn-projects.html
there is info in "Limited keywords support" about expansion of $Id$.
Where does bazaar look for such rules file? I tried rules.bazaar in current directory and in [APP_DATA]\bazaar\2.0\rules.bazaar, and added that to bazaar.conf but when I checkout from Subversion repository $Id$ is not expanded.
I work on Windows, with Bazaar (bzr) 2.2.1 and Tortoise Bazaar 0.5.8
run bzr version on the commandline
and see the line that starts with "Bazaar configuration:".
You should add a file called "rules" in that directory.
You should put the rules in something like:
C:\Documents and Settings\\Application Data\Bazaar\2.0\rules
It's the directory where you have bazaar.conf.
Keyword expansion should be easier with the keyword plugin