newbie: hg diff -r#1 -r#2 path:somename.diff ( no cigar )
Sune Foldager
cryo at cyanite.org
Tue May 3 08:36:18 UTC 2011
On Mon, May 02, 2011 at 05:50:10AM -0700, Steffen Dyhr-Nielsen wrote:
> I´m running hg in W7 from the commandprompt. The only examples I´ve been able
> to find are like : hg diff -r rev1 -r ref2 filename.. I get the diff info in
> the console allright, & I don´t get any error message, but no file is
> generated?? What´s missing.. Help would really be appreciated. THx
Like the others explained, piping/redirecting is the way to go. Just make sure you
don't try to pull that off in PowerShell, in which it is useless for binary data and
problematic for text. (Basically, stuff is converted to UTF-16 :-/ ).
Another way, which always works since it has an -o argument to specify output
filename, is to use hg export: hg export -r rev1 -r rev2 -o patch
-Sune
More information about the Mercurial
mailing list