I'm experimenting with using a Subversion repository through Git. That way I can keep better track of my own (experimental) work, without polluting/destabilizing the central Subversion repository with small incremental commits. Git comes with a svn
sub-tool that takes care of all the interfacing between the local git repository …
-
-
Ignore whitespace in Subversion diffs
When you're working on a software development project where not all parties use the same code style conventions or editor setting (like tabs vs. spaces, removing trailing spaces, etc), the signal to noise ratio of a source code diff can be a bit frustrating. Luckily, most diff programs have an …
-
Subversion: undo committed changes
How to undo/rollback a Subversion commit? A fairly basic question, but every time I need the answer, I can't manage to remember it from the previous time I did it. Asking Google helps eventually, but the signal to noise ratio of the top hits is a bit disappointing. This …
-
Color highlighted diffs with git, svn and cvs
At first it felt annoying, but now I really like that git uses a pager when it has to present something (e.g. a log or a diff) that is longer than your screen. Git even provides a built in option
--color
to show you a diff with helpful colors … -
Flag a PDF file as binary for Subversion
Sometimes, Subversion thinks that a PDF is a text file, instead of binary data. This can hurt during commits or diffs, because Subversion tries to do textual diffs with binary data.
Solution: you can explicitly flag the file as PDF data and Subversion will handle it as binary from then …
-
Script for easier adding subversion ignore rules
It's possible to make Subversion ignore unversioned files, so they don't show up in the status overview and you get a better signal to noise ratio. The command line interface to add ignore rules this is however a bit clunky. First, you need to remember following command:
svn propedit svn …
-
Parsing the subversion Id keyword with python
Parsing a subversion Id keyword is just a matter of some regular expression magic:
# use the built in regular expression library import re # the subversion Id keyword svnid = '$Id: svnidparse.py 1234 2008-02-19 09:59:27Z joske $' # bow for the mighty regular expression svnidrep = r'^\$Id: (?P<filename>.+) (?P<revision …
-
LaTeX trick: putting the subversion revision number on every page
I mostly use LaTeX for writing documents (LyX actually, but that doesn't matter here) and use Subversion for version control. For managing the revision info of a source code file I use Subversion's built in feature Keyword Substitution which expands some special keyword (like
$Date$
or$Revision$
) in the source … -
svnversion and Kdevelop
Subversion keyword substitution is a nice concept, but the revision number refers to the revision the file was last changed, not the current version of the file. If you have for example a project with several files (e.g.
main.c
,pol.c
,mol.s
) and inmain.c
you … -
Accessing a svn server behind a firewall
Disclaimer: this entry is mainly a reminder to myself (the stuff you would write on a post-it), but maybe it's useful to someone else.
The subversion server at my work is (currently) only accessible from within the LAN, not directly reachable from the outside evil internet. T his makes it …