[PATCH] Fix darcs in a repository with no changes



Fix darcs plugin in a repository with no changes (like for example an empty one)

-- 
Vincent Legoll
From c531fdfd37d539fea148fbb119ee35973853b7d2 Mon Sep 17 00:00:00 2001
From: vince <vince vlegoll emea hpqcorp net>
Date: Tue, 28 Apr 2009 17:18:10 +0200
Subject: [PATCH] Fix darcs in a repository with no changes,
 for example like an empty repository

---
 vc/darcs.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/vc/darcs.py b/vc/darcs.py
index 807ccf3..0539db5 100644
--- a/vc/darcs.py
+++ b/vc/darcs.py
@@ -97,6 +97,8 @@ class Vc(_vc.CachedVc):
                 if e.errno != errno.EAGAIN:
                     raise
         for line in p:
+            if line.startswith('No changes!'):
+                continue
             elements = line.split()
             if len(elements) > 1:
                 if elements[1] == '->':
-- 
1.6.0.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]