~bzr/bzr-fastimport/trunk

« back to all changes in this revision

Viewing changes to exporters/darcs/t/lib.sh

  • Committer: Jelmer Vernooij
  • Date: 2010-10-09 13:27:46 UTC
  • mfrom: (277.1.2 trunk)
  • Revision ID: jelmer@samba.org-20101009132746-kmdrnc7nojv62lgy
Merge darcs exporter improvements from Miklos.

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
 
263
263
diff_importhg()
264
264
{
265
 
        test -z "`(cd $1.darcs; darcs diff)`" &&
 
265
        cd $1.darcs && test -z "`darcs diff 2>&1`" && cd .. &&
266
266
        diff --exclude _darcs --exclude .hg --exclude '*-darcs-backup*' --exclude 'hg-export.*' \
267
267
                --exclude '.hgtags' --exclude '*.orig' -Nur $1 $1.darcs
268
268
        return $?
270
270
 
271
271
diff_importdarcs()
272
272
{
273
 
        test -z "`(cd $1.darcs; darcs diff)`" &&
 
273
        cd $1.importdarcs && test -z "`darcs diff 2>&1`" && cd .. &&
274
274
        diff --exclude _darcs --exclude '*-darcs-backup*' -Nur $1 $2
275
275
        return $?
276
276
}
277
277
 
278
278
diff_importbzr()
279
279
{
280
 
        test -z "`(cd $1.darcs; darcs diff)`" &&
 
280
        cd $1.darcs && test -z "`darcs diff 2>&1`" && cd .. &&
281
281
        diff --exclude _darcs --exclude .bzr --exclude '*-darcs-backup*' -Nur $1 $1.darcs
282
282
        return $?
283
283
}