allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#4977] ticket:171 fixed bugs and added test
Date Wed, 26 Sep 2012 19:28:42 GMT
Updated Branches:
  refs/heads/master 49bd63679 -> 6779fe1e5


[#4977] ticket:171 fixed bugs and added test


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/6779fe1e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/6779fe1e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/6779fe1e

Branch: refs/heads/master
Commit: 6779fe1e5d3ba2b64b24ce10673dc58a332e313b
Parents: 49bd636
Author: Yuriy Arhipov <yuriyarhipovua@yandex.ru>
Authored: Fri Sep 21 18:44:56 2012 +0400
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Wed Sep 26 19:10:55 2012 +0000

----------------------------------------------------------------------
 Allura/allura/model/repo.py                        |    4 +-
 .../data/testrepoforre.hg/.SOURCEFORGE-REPOSITORY  |    1 +
 .../tests/data/testrepoforre.hg/.hg/00changelog.i  |  Bin 0 -> 57 bytes
 .../data/testrepoforre.hg/.hg/branchheads.cache    |    2 +
 .../forgehg/tests/data/testrepoforre.hg/.hg/hgrc   |    4 ++
 .../tests/data/testrepoforre.hg/.hg/requires       |    3 +
 .../data/testrepoforre.hg/.hg/store/00changelog.i  |  Bin 0 -> 564 bytes
 .../data/testrepoforre.hg/.hg/store/00manifest.i   |  Bin 0 -> 495 bytes
 .../.hg/store/data/test%%test/test.txt.i           |  Bin 0 -> 64 bytes
 .../.hg/store/data/test%test/test.txt.i            |  Bin 0 -> 64 bytes
 .../.hg/store/data/test++test/test.txt.i           |  Bin 0 -> 64 bytes
 .../.hg/store/data/test+test/test.txt.i            |  Bin 0 -> 64 bytes
 .../.hg/store/data/test..test/test.txt.i           |  Bin 0 -> 64 bytes
 .../.hg/store/data/test.test/test.txt.i            |  Bin 0 -> 64 bytes
 .../.hg/store/data/test/text.txt.i                 |  Bin 0 -> 64 bytes
 .../.hg/store/data/test{{}}test/test.txt.i         |  Bin 0 -> 64 bytes
 .../.hg/store/data/test{{}}test3/test.txt.i        |  Bin 0 -> 64 bytes
 .../.hg/store/data/test{}test/test.txt.i           |  Bin 0 -> 64 bytes
 .../.hg/store/data/test{}test3/test.txt.i          |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~2atest/test.txt.i          |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~2atest1/test.txt.i         |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~2a~2atest/test.txt.i       |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~2a~2atest2/test.txt.i      |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~3ftest/test.txt.i          |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~3ftest3/test.txt.i         |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~3f~3ftest/test.txt.i       |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~3f~3ftest4/test.txt.i      |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~7etest/test.txt.i          |  Bin 0 -> 64 bytes
 .../.hg/store/data/test~7e~7etest/test.txt.i       |  Bin 0 -> 64 bytes
 .../tests/data/testrepoforre.hg/.hg/store/fncache  |   21 +++++++++
 .../tests/data/testrepoforre.hg/.hg/store/undo     |  Bin 0 -> 209 bytes
 .../tests/data/testrepoforre.hg/.hg/tags.cache     |    2 +
 .../tests/data/testrepoforre.hg/.hg/undo.branch    |    1 +
 .../forgehg/tests/functional/test_controllers.py   |   36 +++++++++++++++
 34 files changed, 73 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index b59cbaa..861ccaf 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -414,7 +414,9 @@ class Tree(RepoObject):
 
     def ls(self):
         # Load last commit info
-        id_re = re.compile("^{0}:{1}:".format(self.repo._id, h.really_unicode(self.path()).encode('utf-8')))
+        id_re = re.compile("^{0}:{1}:".format(
+            self.repo._id,
+            re.escape(h.really_unicode(self.path()).encode('utf-8'))))
         lc_index = dict(
             (lc.name, lc.commit_info)
             for lc in LastCommitDoc.m.find(dict(_id=id_re)))

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.SOURCEFORGE-REPOSITORY
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.SOURCEFORGE-REPOSITORY b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.SOURCEFORGE-REPOSITORY
new file mode 100644
index 0000000..4970fe3
--- /dev/null
+++ b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.SOURCEFORGE-REPOSITORY
@@ -0,0 +1 @@
+hg
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/00changelog.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/00changelog.i b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/00changelog.i
new file mode 100644
index 0000000..d3a8311
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/00changelog.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/branchheads.cache
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/branchheads.cache b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/branchheads.cache
new file mode 100644
index 0000000..aa4272d
--- /dev/null
+++ b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/branchheads.cache
@@ -0,0 +1,2 @@
+46102df5d3da607c196d60aacfcd08f88b58bd27 2
+46102df5d3da607c196d60aacfcd08f88b58bd27 default

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/hgrc
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/hgrc b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/hgrc
new file mode 100755
index 0000000..16c8fd4
--- /dev/null
+++ b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/hgrc
@@ -0,0 +1,4 @@
+[hooks]
+; = [the next line is required for site integration, do not remove/modify] = 
+changegroup = curl -s http://localhost:8080/auth/refresh_repo/p/allura/code/
+

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/requires
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/requires b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/requires
new file mode 100644
index 0000000..5175383
--- /dev/null
+++ b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/requires
@@ -0,0 +1,3 @@
+revlogv1
+store
+fncache

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/00changelog.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/00changelog.i b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/00changelog.i
new file mode 100644
index 0000000..8bd65c9
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/00changelog.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/00manifest.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/00manifest.i b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/00manifest.i
new file mode 100644
index 0000000..7e29128
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/00manifest.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test%%test/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test%%test/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test%%test/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test%%test/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test%test/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test%test/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test%test/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test%test/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test++test/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test++test/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test++test/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test++test/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test+test/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test+test/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test+test/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test+test/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test..test/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test..test/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test..test/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test..test/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test.test/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test.test/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test.test/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test.test/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test/text.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test/text.txt.i b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test/text.txt.i
new file mode 100644
index 0000000..a6bdf46
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test/text.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{{}}test/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{{}}test/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{{}}test/test.txt.i
new file mode 100644
index 0000000..8963e92
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{{}}test/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{{}}test3/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{{}}test3/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{{}}test3/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{{}}test3/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{}test/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{}test/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{}test/test.txt.i
new file mode 100644
index 0000000..8963e92
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{}test/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{}test3/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{}test3/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{}test3/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test{}test3/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2atest/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2atest/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2atest/test.txt.i
new file mode 100644
index 0000000..8963e92
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2atest/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2atest1/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2atest1/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2atest1/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2atest1/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2a~2atest/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2a~2atest/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2a~2atest/test.txt.i
new file mode 100644
index 0000000..8963e92
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2a~2atest/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2a~2atest2/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2a~2atest2/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2a~2atest2/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~2a~2atest2/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3ftest/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3ftest/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3ftest/test.txt.i
new file mode 100644
index 0000000..8963e92
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3ftest/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3ftest3/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3ftest3/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3ftest3/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3ftest3/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3f~3ftest/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3f~3ftest/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3f~3ftest/test.txt.i
new file mode 100644
index 0000000..8963e92
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3f~3ftest/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3f~3ftest4/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3f~3ftest4/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3f~3ftest4/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~3f~3ftest4/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~7etest/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~7etest/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~7etest/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~7etest/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~7e~7etest/test.txt.i
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~7e~7etest/test.txt.i
b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~7e~7etest/test.txt.i
new file mode 100644
index 0000000..2431023
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/data/test~7e~7etest/test.txt.i
differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/fncache
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/fncache b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/fncache
new file mode 100644
index 0000000..e07fd6f
--- /dev/null
+++ b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/fncache
@@ -0,0 +1,21 @@
+data/test%%test/test.txt.i
+data/test%test/test.txt.i
+data/test**test2/test.txt.i
+data/test*test1/test.txt.i
+data/test++test/test.txt.i
+data/test+test/test.txt.i
+data/test..test/test.txt.i
+data/test.test/test.txt.i
+data/test??test4/test.txt.i
+data/test?test3/test.txt.i
+data/test{{}}test3/test.txt.i
+data/test{}test3/test.txt.i
+data/test~test/test.txt.i
+data/test~~test/test.txt.i
+data/test/text.txt.i
+data/test**test/test.txt.i
+data/test*test/test.txt.i
+data/test??test/test.txt.i
+data/test?test/test.txt.i
+data/test{{}}test/test.txt.i
+data/test{}test/test.txt.i

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/undo
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/undo b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/undo
new file mode 100644
index 0000000..9998fb7
Binary files /dev/null and b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/store/undo differ

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/tags.cache
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/tags.cache b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/tags.cache
new file mode 100644
index 0000000..46d40c0
--- /dev/null
+++ b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/tags.cache
@@ -0,0 +1,2 @@
+2 46102df5d3da607c196d60aacfcd08f88b58bd27
+

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/undo.branch
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/undo.branch b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/undo.branch
new file mode 100644
index 0000000..331d858
--- /dev/null
+++ b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/undo.branch
@@ -0,0 +1 @@
+default
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/undo.dirstate
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/undo.dirstate b/ForgeHg/forgehg/tests/data/testrepoforre.hg/.hg/undo.dirstate
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6779fe1e/ForgeHg/forgehg/tests/functional/test_controllers.py
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/functional/test_controllers.py b/ForgeHg/forgehg/tests/functional/test_controllers.py
index 515b74e..3ef2e97 100644
--- a/ForgeHg/forgehg/tests/functional/test_controllers.py
+++ b/ForgeHg/forgehg/tests/functional/test_controllers.py
@@ -226,3 +226,39 @@ class TestLogPagination(TestController):
         resp = self.app.get(self._get_ci() + 'log/?limit=50')
         assert "[0debe4]" in resp
         assert "[dc406e]" in resp
+
+
+class TestTreeLs(TestController):
+
+    def setUp(self):
+        TestController.setUp(self)
+        self.setup_with_tools()
+
+    @td.with_hg
+    def setup_with_tools(self):
+        h.set_context('test', 'src-hg', neighborhood='Projects')
+        repo_dir = pkg_resources.resource_filename(
+            'forgehg', 'tests/data')
+        c.app.repo.fs_path = repo_dir
+        c.app.repo.status = 'ready'
+        c.app.repo.name = 'testrepoforre.hg'
+        c.app.repo.refresh()
+        ThreadLocalORMSession.flush_all()
+        ThreadLocalORMSession.close_all()
+        h.set_context('test', 'src-hg', neighborhood='Projects')
+        c.app.repo.refresh()
+
+    def _get_ci(self):
+        resp = self.app.get('/src-hg/').follow().follow()
+        for tag in resp.html.findAll('a'):
+            if tag['href'].startswith('/p/test/src-hg/ci/'):
+                return tag['href']
+        return None
+
+    def test_tree_ls(self):
+        ci = self._get_ci()
+        for i in ['*', '%', '%3F', '+', '*', '%', '.', '~']:
+            r = self.app.get('%stree/test%stest/' % (ci, i))
+            assert 'test.txt' in r
+            r = self.app.get('%stree/test%stest/' % (ci, i + i))
+            assert 'test.txt' in r


Mime
View raw message