Commits

Brendan Cully  committed 07dbf3b

restore working dir diff, broken in 7e3a04687152

  • Participants
  • Parent commits b868a9c

Comments (0)

Files changed (1)

 
         if lrev:
             lrev = repo.changectx(lrev).node()
-        else:
-            # bundle dirstate removed prior to hg 1.1
-            lrev = repo.dirstate.parents()[0]
 
         rrev = other.changectx(rrev or 'tip').node()
         if opts['reverse']:
             lrev, rrev = rrev, lrev
+        if not lrev:
+            # bundle dirstate removed prior to hg 1.1
+            lrev = repo.dirstate.parents()[0]
+
         try:
             m = cmdutil.match(repo, pats, opts)
             chunks = patch.diff(other, lrev, rrev, match=m,