~ubuntu-branches/ubuntu/quantal/bzr-svn/quantal

« back to all changes in this revision

Viewing changes to logwalker.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2008-11-10 02:31:45 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20081110023145-h7vtophkjmcajp9g
Tags: 0.4.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
352
352
        assert revnum >= 0
353
353
        self.fetch_revisions(revnum)
354
354
        self.mutter("get previous %r:%r", path, revnum)
355
 
        if path == "":
356
 
            if revnum == 0:
357
 
                return (None, -1)
358
 
            return (path, revnum - 1)
359
355
        row = self.cache.get_previous(path, revnum)
360
356
        if row is None:
 
357
            if revnum == 0:
 
358
                return (None, -1)
361
359
            return (path, revnum-1)
362
360
        (branch_path, action, copyfrom_path, copyfrom_rev) = row
363
361
        branch_path = branch_path.encode('utf-8')