[Nix-dev] DVCS usecases

Michael Raskin 7c6f434c at mail.ru
Thu Aug 12 17:35:49 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/12/2010 06:51 PM, Yury G. Kudryashov wrote:
> Hi!
> 
> Michael wrote a message about some general DVCS (mis)features. I prefer to 
> be more concrete.
> 
> I propose to list some concrete usecases and ask users of git/mtn whether 
> their dvcs has these features.

> As git is the only DVCS I used, I will list some features that are important 
> for me. Michael, could you please answer is there any easy way to do it with 
> monotone? If one needs just 1-2 lines to do it, could you please provide 
> these commands? I'm nearly sure that monotone can most/all of this things 
> but I prefer to be sure ;)
> 
> Anybody, let us know your favorite features/usecases, please.
> 
> 1. Possibility to work on many branches using one checkout.

Trivial for mtn, hg. Just "update" to the needed branch.

> 2. git diff features

Bzr fully supports using external diff program out of the box, so all
this should be easy.

> a. --ignore-all-space/--ignore-space-at-eol/--ignore-space-change
> 
> I find the first command very useful. Haven't really used the second and 
> third form.

It is just a diff feature. Monotone supports just using diff and passing
it args.

mtn diff --external --diff-args "..."

mercurial just supports that inside itself

> b. --stat/--numstat - diffstat instead of patch

Hm. Never used such things. I can write a custom mtn command to do such
a thing, but it is not built-in, as far as I know.

hg diff --stat

> c. --color-words <-- like wdiff
> 
> d. compare filtered content instead of original files (useful for binary 
> files; I'm not sure that we need this feature)

I guess you'd need to specify a custom diff command for these.

> 3. git submodules (similar to svn externals). Again, I don't know whether 
> Nix needs this.

mtn doesn't support that

hg has hgexternals

bzr has bzr externals plugin

> 4. When did this line came to this file/this repo (no matter which branch)?

annotate - in any VCS
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMZBTUAAoJEE6tnN0aWvw3SrwH/AwaE9ISAr4yqX/hjH9jOG+v
dM2eD0Gi4beyetoyE/N/DPXIo9l+ckBK0nPzCH0H+X4tyHQ+HikkbN7sWxRztLTp
BtP8zlHNYZ/nB1y3qRkkQlbccO7RacOvu2fZ4efctoH6xdYU60gAmxdJolBOAUFb
ZqqzpmI5dOjnClJ4vyEU6l08dRRb1Pk6HOuaANxxuIyjpHpHBwPK5j0A2uMpu3KR
8s/dbaKu1OgolKBo919DGhEsG8uqMt6n769tUCWHf8vIL7LiXRLD8htrLLoT2rjb
izIkyiJkkfVYz4Z+g1k00HAKOI66xmbutLDb+zSG6ZYSAQB5lzpCnlcPbzFe8JY=
=3KLA
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list