Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
jio
Commits
c9741880
Commit
c9741880
authored
Jan 07, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getLeavesFromDocumentTree can except branch now
parent
0442ae5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/jio.storage/revisionstorage.js
src/jio.storage/revisionstorage.js
+3
-3
No files found.
src/jio.storage/revisionstorage.js
View file @
c9741880
...
@@ -254,11 +254,11 @@ jIO.addStorageType('revision', function (spec, my) {
...
@@ -254,11 +254,11 @@ jIO.addStorageType('revision', function (spec, my) {
// search method fills [result] with the winner revision
// search method fills [result] with the winner revision
search
=
function
(
document_tree
)
{
search
=
function
(
document_tree
)
{
var
i
;
var
i
;
if
(
document_tree
.
children
.
length
===
0
)
{
// This node is a leaf
if
(
except
!==
undefined
&&
except
===
document_tree
.
rev
)
{
if
(
except
!==
undefined
&&
except
===
document_tree
.
rev
)
{
return
;
return
;
}
}
if
(
document_tree
.
children
.
length
===
0
)
{
// This node is a leaf
result
.
push
(
document_tree
.
rev
);
result
.
push
(
document_tree
.
rev
);
return
;
return
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment