thanks for this great hg extension. It is really usefull. How do I contribute to it? Here is a patch that would have saved me 1 or 2 hours digging in the source to find why their was nothing that was cloned.
check that we have some revision to clone. Otherwise, print a warning with a possible explaination: their is no trunk, tags and branches subdirectory in the specified url. This mean we can't clone a partial svn repository.
diff -r 91db8fc049b0 svnwrap/svn_swig_wrapper.py
--- a/svnwrap/svn_swig_wrapper.py Tue Feb 24 14:30:21 2009 -0600
+++ b/svnwrap/svn_swig_wrapper.py Wed Feb 25 11:47:07 2009 -0500
@@ -253,6 +253,7 @@
# this does the same thing, but at the repo root + filtering. It's # kind of tough cookies, sadly.
+ have_yielded = False
for r in self.fetch_history_at_paths([''], start=start,
should_yield = False
@@ -266,8 +267,12 @@
i += 1
+ have_yielded = True
- if not have_yielded:
print "Warning: We didn't found any revision to fetch! The path you try to clone should includ the subdirectory trunk, tags and branches. This mean you can't clone a partial svn repository."
def fetch_history_at_paths(self, paths, start=None, stop=None, chunk_size=1000): revisions =