##// END OF EJS Templates
qimport: record imported revs incrementally (issue3874)...
Matt Mackall -
r21965:fd7839d1 stable
parent child Browse files
Show More
@@ -1995,12 +1995,12 b' class queue(object):'
1995 self.added.append(patchname)
1995 self.added.append(patchname)
1996 imported.append(patchname)
1996 imported.append(patchname)
1997 patchname = None
1997 patchname = None
1998 if rev and repo.ui.configbool('mq', 'secret', False):
1998 if rev and repo.ui.configbool('mq', 'secret', False):
1999 # if we added anything with --rev, we must move the secret root
1999 # if we added anything with --rev, move the secret root
2000 phases.retractboundary(repo, phases.secret, [n])
2000 phases.retractboundary(repo, phases.secret, [n])
2001 self.parseseries()
2001 self.parseseries()
2002 self.applieddirty = True
2002 self.applieddirty = True
2003 self.seriesdirty = True
2003 self.seriesdirty = True
2004
2004
2005 for i, filename in enumerate(files):
2005 for i, filename in enumerate(files):
2006 if existing:
2006 if existing:
@@ -196,6 +196,14 b' try to import --push'
196 now at: appendbar.diff
196 now at: appendbar.diff
197 $ hg qfin -a
197 $ hg qfin -a
198 patch b.diff finalized without changeset message
198 patch b.diff finalized without changeset message
199 $ touch .hg/patches/2.diff
200 $ hg qimport -r 'p1(.)::'
201 abort: patch "2.diff" already exists
202 [255]
203 $ hg qapplied
204 3.diff
205 $ hg qfin -a
206 $ rm .hg/patches/2.diff
199 $ hg qimport -r 'p1(.)::' -P
207 $ hg qimport -r 'p1(.)::' -P
200 $ hg qpop -a
208 $ hg qpop -a
201 popping 3.diff
209 popping 3.diff
General Comments 0
You need to be logged in to leave comments. Login now