File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -841,7 +841,10 @@ def resolve_unfinished_pull(self, directory):
841
841
.. seealso:: self.has_unfinished_pull
842
842
843
843
:param directory: project's directory
844
- :type directory: String
844
+ :type directory: str
845
+ :returns: files where conflicts were found
846
+ :rtype: list[str]
845
847
"""
846
848
mp = MerginProject (directory )
847
- mp .resolve_unfinished_pull (self .username ())
849
+ conflicts = mp .resolve_unfinished_pull (self .username ())
850
+ return conflicts
Original file line number Diff line number Diff line change @@ -688,7 +688,14 @@ def resolve_unfinished_pull(self, user_name):
688
688
server.
689
689
690
690
.. seealso:: self.has_unfinished_pull
691
+
692
+ :param user_name: name of the user
693
+ :type user_name: str
694
+ :returns: files where conflicts were found
695
+ :rtype: list[str]
691
696
"""
697
+ conflicts = []
698
+
692
699
if not self .has_unfinished_pull ():
693
700
self .log .warning ("no unfinished pulls found" )
694
701
return
@@ -712,6 +719,7 @@ def resolve_unfinished_pull(self, user_name):
712
719
try :
713
720
# conflicted copy
714
721
conflict = self .create_conflicted_copy (dest , user_name )
722
+ conflicts .append (conflict )
715
723
# original file synced with server
716
724
self .geodiff .make_copy_sqlite (src , basefile )
717
725
self .geodiff .make_copy_sqlite (src , dest )
@@ -721,4 +729,4 @@ def resolve_unfinished_pull(self, user_name):
721
729
722
730
shutil .rmtree (self .unfinished_pull_dir )
723
731
self .log .info ("unfinished pull resolved successfuly!" )
724
- return
732
+ return conflicts
You can’t perform that action at this time.
0 commit comments