[PATCH 2 of 2 default] added regression test for issue 3857
Sandeep.C.R
sandeepcr2 at gmail.com
Fri Nov 29 02:41:43 UTC 2013
# HG changeset patch
# User Sandeep.C.R <sandeepcr2 at gmail.com>
# Date 1385643827 -19800
# Node ID f5a836625f880a40fcf95ae37086f45bdf45b530
# Parent be674fae4c5200453f9ce5139333239caf70968e
added regression test for issue 3857
diff -r be674fae4c52 -r f5a836625f88 tests/test-record.t
--- a/tests/test-record.t Wed Nov 27 20:56:48 2013 +0530
+++ b/tests/test-record.t Thu Nov 28 18:33:47 2013 +0530
@@ -1277,5 +1277,20 @@
c
+d
-
+Take username from -u option
+
+ $ unset HGUSER
+ $ unset EMAIL
+ $ touch canrecordwithoutusername
+ $ echo dummycontent > canrecordwithoutusername
+ $ hg add canrecordwithoutusername
+ $ hg record -m message -u recordinguser <<EOF
+ > Y
+ > Y
+ > EOF
+ diff --git a/canrecordwithoutusername b/canrecordwithoutusername
+ new file mode 100644
+ examine changes to 'canrecordwithoutusername'? [Ynesfdaq?]
+ $ EMAIL="Foo Bar <foo.bar at example.com>"
+ $ export EMAIL
$ cd ..
More information about the Mercurial-devel
mailing list