Comments
Patch
new file mode 100644
@@ -0,0 +1,11 @@
+from mercurial import util
+
+def makedate():
+ return 0, 0
+def getuser():
+ return 'bob'
+
+# mock the date and user apis so the output is always the same
+def uisetup(ui):
+ util.makedate = makedate
+ util.getuser = getuser
@@ -1,21 +1,9 @@
setup
- $ cat > mock.py <<EOF
- > from mercurial import util
- >
- > def makedate():
- > return 0, 0
- > def getuser():
- > return 'bob'
- > # mock the date and user apis so the output is always the same
- > def uisetup(ui):
- > util.makedate = makedate
- > util.getuser = getuser
- > EOF
$ cat >> $HGRCPATH <<EOF
> [extensions]
> blackbox=
- > mock=`pwd`/mock.py
+ > mock=$TESTDIR/mockblackbox.py
> mq=
> EOF
$ hg init blackboxtest
$ cd blackboxtest