-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Synced all changes from rhodecode into VCS - Subprocess calls are now made via subprocessio provides non-blocking subprocess commands - Added children methods to changeset objects - Unified diff between git and mercurial. it now shows renames/copies/binary files properly - Fixed some relative imports in tests - Implemented __eq__ operator for repositories - Author and committer are now two separate functions allowing to fetch that information from git - Slicing of repos use now more efficient generator wrappers called CollectionGenerator - Removed LazyProperty from _repo object in dulwich that was causing various errors in multithreaded env - Improved performance of file history methods - Implemented URL validator for GIT - Fixed fetch method for GIT to actually fetch all heads --HG-- extra : amend_source : 1ee7550a83ef18e232683fe73bfe9ab8b8c62511 extra : histedit_source : a61eb96e86483f39541aa83f777cdffd0dd77a64%2Cb7084d92169ae2b6b6c45175000a6e662850a652
- Loading branch information
1 parent
2b8ef89
commit 8dbf597
Showing
57 changed files
with
1,657 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,3 @@ Base Backend | |
|
||
.. automodule:: vcs.backends.base | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,3 @@ vcs.cli.SingleChangesetCommand | |
|
||
.. autoclass:: vcs.cli.SingleChangesetCommand | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,3 @@ RootNode | |
|
||
.. autoclass:: vcs.nodes.RootNode | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,3 @@ Lazy attributes utils | |
|
||
.. automodule:: vcs.utils.lazy | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,3 @@ intend to write new backend)! | |
|
||
|
||
.. _TDD: http://en.wikipedia.org/wiki/Test-driven_development | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
8dbf597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lukaszb check it out (i know it's a lot) but if you're ok let's tag it an release !
8dbf597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, great commit. I would definitely prefer it to be splited into smaller changes but hell, a lot of bugs are fixed!
Here are my notes, let me know what you think about them. Some of them are just notes so I remember what to do before release.
get_file_history_2
? I would prefer to stick with one.enumerate(iterable, 1)
where applicable (ie. for line numbers)get_file_annotate
should change order of returned objects (sha
should be first in my view)LazyChangeset
(instead of lambda) - this is better for prototyping (seeing lambda objects doesn't tell much to the user)%r
to%s
in many places for exception string formatting? I always preferred to get raw representation in exceptions as it often point to type of the object being formatted.Also, why not
a | m | d
?7. At hg.changeset (
get_file_changeset
method):we should probably use generator here instead of a list. Or simply
reversed(fctx.filelog())
I guess.8. Am not fun of something like:
would prefer
A. Isn't
Condition
unnecessary imported atvcs.utils.compat
(it's almost immediately overridden)?B.
itertools
are not used atvcs.utils.diffs
.C. Some refactors around imports are not clear to me (ie. why
import string ... string.Template(
and notfrom string import Template ... Template(
?D. Whitespace
E. Tox is still broken (seems it doesn't use
test_require
values.8dbf597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re1 - it's a pure python version of get_file_history, it's really slow but it works when there's no git executable, i can remove it ?
re2 - doesn't work for python2.5
8dbf597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for nice feedback.
re3 - yes that would be better, i'll change that
re4 - +1 for that
re5 - that was due to some refactoring in rhodecode, but i agree with you better is to use %r, i'll revert that based on that commit
re6 - ok i changed to longer names, but a.union(m).union(d) looks cleaner for me [personal opinion :)]
re7 - need to read some more code to be able to answer that
re8 - yep that looks nicer, it's now changed
A: fixed
B: fixed
C: i always prefer to import modules, like you import os, and use os.path.join
if i import Template from string, looking at the code not always tells you where the Template is from, is it internal class or ?
D: ? don't get it
E: fixed
8dbf597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
union
methods (as it semi-clearly tells that objects are sets)reversed
consumes iterables ;-)C. I see the point, wanted to hear the reasoning. I try to do that when it makes sense, here it absolutely od.
D. I needed to pass
?w=
to the url to read the changes :P (there a lot of whitespace left at the end of lines).Thanks for all the fixes! Tox for Python 2.5 is still failing, though. Once that is fixed we can perform a release!
8dbf597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
odd travis reported build fine for py2.5