edit Mercurial and Nix repositoriesYou really can't get into non-distributed VCS? Then this page might be what you're looking for! edit Installing Mercurial and hgsubversionnix-env -i mercurial nix-env -i hgsubversion (hgsubversion will be hopefully soon available via nix...) edit Configuring Mercurial to use hgsubversion
[ui] username = Firstname Lastname <email> verbose = True [extensions] hgext.convert= rebase= svn=~/.nix-profile/lib/python2.6/hgsubversion
$ hg version --svn Mercurial Distributed SCM (version 1.6.4) Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. hgsubversion: 1.1.2+101-bfb88a304ebe Subversion: 1.6.12 bindings: Subvertpy 0.7.4 edit Cloning the nixpkgs svn repositoryThis *WILL* take a *LONG* time (about 10-20 minutes) $ mkdir -p ~/some/path/ $ cd ~/some/path $ hg clone https://svn.nixos.org/repos/nix/nixpkgs/trunk nixpkgs-hg
$ ls -l pkgs/stdenv/linux/bootstrap/i686/ totale 312K -rwxr-xr-x 1 imc users 73K 13 ott 21:54 bzip2 -rwxr-xr-x 1 imc users 14K 13 ott 21:54 cpio -rwxr-xr-x 1 imc users 120K 13 ott 21:54 curl.bz2 -rw-r--r-- 1 imc users 289 13 ott 21:54 default.nix -rwxr-xr-x 1 imc users 8,0K 13 ott 21:54 ln -rwxr-xr-x 1 imc users 9,4K 13 ott 21:54 mkdir -rwxr-xr-x 1 imc users 62K 13 ott 21:54 sh (owner and group are not important) edit Staying up to date$ hg pull If for some reason you get an: abort: unknown revision hash_of_revision Do a $ hg svn rebuildmeta and retry the pull. edit Diffs between svn and your version$ hg diff --svn -r<hg LOCAL revision> (will show the svn revision of modified files) edit Commit to svn (not tested!)$ hg push |