Changeset 284 in tailor


Ignore:
Timestamp:
05/07/05 02:56:07 (8 years ago)
Author:
lele@…
Hash name:
20050507005607-97f81-27ebc103c6976c2743700f41ca559d5de7c893ec
Message:

Do not relay on --last=1, but rather get changes of exactly the same patch
Maybe I'm just paranoid, but it seems safer to not assume --last=1 gives
back the right patch, and explicitly ask for the same patch just pulled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/darcs.py

    r279 r284  
    197197        """ 
    198198 
     199        patchname=shrepr(changeset.revision) 
     200         
    199201        c = SystemCommand(working_dir=root, 
    200202                          command="darcs pull --all --patches=%(patch)s") 
    201         output = c(output=True, patch=shrepr(changeset.revision)) 
     203        output = c(output=True, patch=patchname) 
    202204        if c.exit_status: 
    203205            raise ChangesetApplicationFailure("'darcs pull' returned status %d saying \"%s\"" % (c.exit_status, output.getvalue().strip())) 
    204206 
    205207        c = SystemCommand(working_dir=root, 
    206                           command="darcs changes --last=1 --xml-output --summ") 
    207         last = changesets_from_darcschanges(c(output=True)) 
    208         changeset.entries.extend(last[0].entries) 
     208                          command="darcs changes --patches=%(patch)s" 
     209                                  " --xml-output --summ") 
     210        last = changesets_from_darcschanges(c(output=True, patch=patchname)) 
     211        if last: 
     212            changeset.entries.extend(last[0].entries) 
    209213 
    210214    def _checkoutUpstreamRevision(self, basedir, repository, module, revision, 
Note: See TracChangeset for help on using the changeset viewer.