- 21 Jul, 2020 2 commits
-
-
Manuel Jacob authored
Nosetests is not actively developed anymore. Pytest is actively developed and has a much larger ecosystem around it. Two features of pytest are particularly helpful for us: Pytest captures stdio by redirecting at the file descriptor-level instead of replacing sys.stdout. This is required for Mercurial, as it has its own reference to stdout. Before with nosetests, most output was silently swallowed. Pytest offers the `ALLOW_UNICODE` and `ALLOW_BYTES` options for doctests, making it much easier to make our docstrings Python 2- and Python 3-compatiable. During this patch, it was attempted to leave the structure of the test code similar to before instead of converting everything to idiomatic pytest code. Luckily, pytest implements enough interoperability for most of our test code.
-
Manuel Jacob authored
Nosetests treats both the same way. Pytest only understands `setup_module()`. In addition, one `teardown()` was renamed to `teardown_module()`.
-
- 25 Aug, 2019 1 commit
-
-
kiilerix authored
Untested.
-
- 23 Mar, 2019 1 commit
-
-
Matt Harbison authored
Fixed up after running `2to3 -w -n -f xrange .`.
-
- 23 Jul, 2017 2 commits
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
All QVariant objects should be implicitly converted by toPyObject().
-
- 22 Jul, 2017 1 commit
-
-
Steve Borho authored
-
- 25 Sep, 2016 1 commit
-
-
Yuya Nishihara authored
-
- 21 Dec, 2014 1 commit
-
-
Yuya Nishihara authored
Because largefiles wraps many functions statically, ManifestModelLargeFilesTest must be run in isolated environment. Otherwise, subsequent tests would fail with AttributeError: 'mqrepo' object has no attribute '_lfstatuswriters'. Eventually, 'extensions' attribute can be used to set up .hgrc and 'mq' tests should also be isolated.
-
- 04 Oct, 2014 1 commit
-
-
Yuya Nishihara authored
hg calls in tearDown() explicitly set delaylock=0 to avoid slowdown.
-
- 06 Feb, 2014 1 commit
-
-
Yuya Nishihara authored
Because workingctx has no real identity, "wctx1.node() == wctx2.node()" does not mean they are exactly the same. So manifest model shouldn't ignore repeated setRev(None) or setRawContext(wctx) requests. Currently patchctx isn't affected by this problem because it lacks __eq__(), but the same can be said for patchctx in principle. Though changes in patchctx can be detected by ctx.thgid(), I decided not to use it. Eventually, we want to remove context and repository extensions. This fixes missing refresh after shelve/unshelve. --HG-- branch : stable
-
- 30 Jan, 2014 1 commit
-
-
Yuya Nishihara authored
If the currently-selected revision is qrefresh-ed, manifest model shouldn't skip the subsequent setRev() request just because the revision number is the same. This fixes RepoLookupError in FileData after qrefresh. --HG-- branch : stable
-
- 12 Jan, 2014 1 commit
-
-
Yuya Nishihara authored
They are important to handle subrepos efficiently.
-
- 14 Dec, 2013 4 commits
-
-
Yuya Nishihara authored
--HG-- branch : stable
-
Yuya Nishihara authored
--HG-- branch : stable
-
Yuya Nishihara authored
--HG-- branch : stable
-
Yuya Nishihara authored
--HG-- branch : stable
-
- 30 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
-
- 22 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
This will be used to filter out unmodified files in merge changeset.
-
- 24 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
It will be used to update the file view on revision change.
-
- 22 Dec, 2013 7 commits
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
It implements another API for patchctx because patch handling is very different from regular changectx.
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
- 19 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
-
- 20 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
The filter is applied to both subrepo and its children in OR combination. In the following example, only "C" node is hidden. The subrepo node is "M", but visible because it has child node of "A". filter: "A" "M" -- "A" \- "C"
-
- 19 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
The statuses are mapped to overlay icons similar to HgFileListModel's.
-
- 18 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
Because the statuses are displayed in the context of the main repository, it shouldn't show the changes from subrepo's parent revision. For example, M0 - M1 - M2 (main) : : S0 ------ S1 (sub) rev original fixed --- -------- -------- @M2 S0::S1 S0::S1 @M1 null::S0 S0::S0 <- wrong because M1 inclues no subrepo changes @M0 null::S0 null::S0
-
- 19 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
323e19624618 changes the structure of the nodes, but indexFromPath wasn't updated correspondingly.
-
- 17 Dec, 2013 3 commits
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
Currently it lacks GUI to display query type and error.
-
Yuya Nishihara authored
-
- 18 Dec, 2013 1 commit
-
-
Yuya Nishihara authored
-
- 15 Dec, 2013 3 commits
-
-
Yuya Nishihara authored
Now displayFile() does not need to handle main repository differently.
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
- 16 Jun, 2012 1 commit
-
-
Yuya Nishihara authored
--HG-- branch : stable
-