hgext/largefiles/reposetup.py
changeset 22919 1982bdb7e2cc
parent 22914 c95db3208a33
child 23043 244dbb646ab7
equal deleted inserted replaced
22918:31f34a213384 22919:1982bdb7e2cc
   159                                     if sfindirstate(f)]
   159                                     if sfindirstate(f)]
   160                     # Don't waste time getting the ignored and unknown
   160                     # Don't waste time getting the ignored and unknown
   161                     # files from lfdirstate
   161                     # files from lfdirstate
   162                     unsure, s = lfdirstate.status(match, [], False, listclean,
   162                     unsure, s = lfdirstate.status(match, [], False, listclean,
   163                                                   False)
   163                                                   False)
   164                     (modified, added, removed, missing, _unknown, _ignored,
   164                     (modified, added, removed, clean) = (s.modified, s.added,
   165                      clean) = s
   165                                                          s.removed, s.clean)
   166                     if parentworking:
   166                     if parentworking:
   167                         for lfile in unsure:
   167                         for lfile in unsure:
   168                             standin = lfutil.standin(lfile)
   168                             standin = lfutil.standin(lfile)
   169                             if standin not in ctx1:
   169                             if standin not in ctx1:
   170                                 # from second parent
   170                                 # from second parent
   220                     result[5] = set(result[5]).difference(lfiles)
   220                     result[5] = set(result[5]).difference(lfiles)
   221                     # combine normal files and largefiles
   221                     # combine normal files and largefiles
   222                     normals = [[fn for fn in filelist
   222                     normals = [[fn for fn in filelist
   223                                 if not lfutil.isstandin(fn)]
   223                                 if not lfutil.isstandin(fn)]
   224                                for filelist in result]
   224                                for filelist in result]
   225                     lfstatus = (modified, added, removed, missing, [], [],
   225                     lfstatus = (modified, added, removed, s.deleted, [], [],
   226                                 clean)
   226                                 clean)
   227                     result = [sorted(list1 + list2)
   227                     result = [sorted(list1 + list2)
   228                               for (list1, list2) in zip(normals, lfstatus)]
   228                               for (list1, list2) in zip(normals, lfstatus)]
   229                 else:
   229                 else:
   230                     def toname(f):
   230                     def toname(f):
   296                     # large.
   296                     # large.
   297                     lfdirstate = lfutil.openlfdirstate(ui, self)
   297                     lfdirstate = lfutil.openlfdirstate(ui, self)
   298                     dirtymatch = match_.always(self.root, self.getcwd())
   298                     dirtymatch = match_.always(self.root, self.getcwd())
   299                     unsure, s = lfdirstate.status(dirtymatch, [], False, False,
   299                     unsure, s = lfdirstate.status(dirtymatch, [], False, False,
   300                                                   False)
   300                                                   False)
   301                     modified, added, removed = s[:3]
   301                     modifiedfiles = unsure + s.modified + s.added + s.removed
   302                     modifiedfiles = unsure + modified + added + removed
       
   303                     lfiles = lfutil.listlfiles(self)
   302                     lfiles = lfutil.listlfiles(self)
   304                     # this only loops through largefiles that exist (not
   303                     # this only loops through largefiles that exist (not
   305                     # removed/renamed)
   304                     # removed/renamed)
   306                     for lfile in lfiles:
   305                     for lfile in lfiles:
   307                         if lfile in modifiedfiles:
   306                         if lfile in modifiedfiles: